Fixed up PKGBUILD and bumped ver
parent
468d7027e3
commit
d26e6f1a1e
@ -1,27 +1,37 @@
|
|||||||
# Maintainer: Matt C <mdc028[at]bucknell[dot]edu>
|
# Maintainer: Matt C <matt[at]tar[dot]black>
|
||||||
# Developer: axtlos <axtlos[at]salyut[dot]one>
|
# Developer: axtlos <axtlos[at]tar[dot]black>
|
||||||
# Developer: jnats <jnats[at]salyut[dot]one>
|
# Developer: Michal S <michal[at]tar[dot]black>
|
||||||
|
|
||||||
pkgname=amethyst
|
pkgname=amethyst
|
||||||
pkgver=3.2.0
|
pkgver=3.3.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Fast, efficient and lightweight AUR helper/pacman wrapper"
|
pkgdesc="A fast and efficient AUR helper"
|
||||||
arch=('any')
|
arch=('$CARCH')
|
||||||
url="https://git.tar.black/crystal/ame"
|
url="https://github.com/crystal-linux/amethyst"
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
source=("git+https://git.tar.black/crystal/ame")
|
source=("git+$url")
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
depends=('git' 'binutils' 'fakeroot')
|
depends=('git' 'binutils' 'fakeroot')
|
||||||
makedepends=('cargo' 'make')
|
makedepends=('cargo' 'make')
|
||||||
conflicts=('ame')
|
conflicts=('ame')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir/$pkgname"
|
||||||
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${srcdir}/ame
|
cd "$srcdir/$pkgname"
|
||||||
cargo build --release --all-features
|
export RUSTUP_TOOLCHAIN=stable
|
||||||
|
export CARGO_TARGET_DIR=target
|
||||||
|
cargo build --frozen --release --all-features
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
mkdir -p $pkgdir/usr/bin
|
cd "$srcdir/$pkgname"
|
||||||
chmod +x ${srcdir}/ame/target/release/{ame,apt,apt-get,dnf,eopkg,yum,zypper}
|
find target/release \
|
||||||
cp ${srcdir}/ame/target/release/{ame,apt,apt-get,dnf,eopkg,yum,zypper} $pkgdir/usr/bin/.
|
-maxdepth 1 \
|
||||||
|
-executable \
|
||||||
|
-type f \
|
||||||
|
-exec install -Dm0755 {} "${pkgdir}/usr/bin/" {} +
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue