From d26e6f1a1ea5c879316a1f7cfa61bb0a9ab7fd96 Mon Sep 17 00:00:00 2001 From: Michal Date: Mon, 4 Jul 2022 14:43:17 +0000 Subject: [PATCH] Fixed up PKGBUILD and bumped ver --- Cargo.toml | 2 +- PKGBUILD | 36 +++++++++++++++++++++++------------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4be0d1c..7a31cd3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "Amethyst" -version = "3.2.0" +version = "3.3.0" authors = ["michal ", "axtlos "] edition = "2021" description = "A fast and efficient AUR helper" diff --git a/PKGBUILD b/PKGBUILD index 8dfe1cf..11c5ea3 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,27 +1,37 @@ -# Maintainer: Matt C -# Developer: axtlos -# Developer: jnats +# Maintainer: Matt C +# Developer: axtlos +# Developer: Michal S pkgname=amethyst -pkgver=3.2.0 +pkgver=3.3.0 pkgrel=1 -pkgdesc="Fast, efficient and lightweight AUR helper/pacman wrapper" -arch=('any') -url="https://git.tar.black/crystal/ame" +pkgdesc="A fast and efficient AUR helper" +arch=('$CARCH') +url="https://github.com/crystal-linux/amethyst" license=('GPL3') -source=("git+https://git.tar.black/crystal/ame") +source=("git+$url") sha256sums=('SKIP') depends=('git' 'binutils' 'fakeroot') makedepends=('cargo' 'make') conflicts=('ame') +prepare() { + cd "$srcdir/$pkgname" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + build() { - cd ${srcdir}/ame - cargo build --release --all-features + cd "$srcdir/$pkgname" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features } package() { - mkdir -p $pkgdir/usr/bin - chmod +x ${srcdir}/ame/target/release/{ame,apt,apt-get,dnf,eopkg,yum,zypper} - cp ${srcdir}/ame/target/release/{ame,apt,apt-get,dnf,eopkg,yum,zypper} $pkgdir/usr/bin/. + cd "$srcdir/$pkgname" + find target/release \ + -maxdepth 1 \ + -executable \ + -type f \ + -exec install -Dm0755 {} "${pkgdir}/usr/bin/" {} + }