aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2020-10-24 18:51:03 +0000
committerLeo <thinkabit.ukim@gmail.com>2020-10-25 12:54:37 +0000
commit3ae12b69fa44568ab7a692d0325e46606f24cb43 (patch)
tree8dfb296d7942640b53c910f9042c1280adace153
parent7bf805a5c6a681f4333566c8a796cb4b1b8913d8 (diff)
downloadaports-3ae12b69fa44568ab7a692d0325e46606f24cb43.tar.gz
aports-3ae12b69fa44568ab7a692d0325e46606f24cb43.tar.bz2
aports-3ae12b69fa44568ab7a692d0325e46606f24cb43.tar.xz
testing/asuran-cli: remove cargo files in /usr
* enable building on ppc64le
-rw-r--r--testing/asuran-cli/APKBUILD13
1 files changed, 8 insertions, 5 deletions
diff --git a/testing/asuran-cli/APKBUILD b/testing/asuran-cli/APKBUILD
index 1e92d3e994..4d0a8d1a14 100644
--- a/testing/asuran-cli/APKBUILD
+++ b/testing/asuran-cli/APKBUILD
@@ -2,10 +2,10 @@
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=asuran-cli
pkgver=0.1.6
-pkgrel=0
+pkgrel=1
pkgdesc="Asuran is a new archive format and rust implementation"
url="https://gitlab.com/asuran-rs/asuran"
-arch="all !s390x !mips !mips64 !ppc64le" #ppc64le takes too long to build
+arch="all !s390x !mips !mips64"
license="BSD-2-Clause-Patent"
makedepends="cargo openssl-dev"
source="https://gitlab.com/asuran-rs/asuran/-/archive/v$pkgver/asuran-v$pkgver.tar.gz"
@@ -23,15 +23,18 @@ build() {
export RUSTFLAGS=$_rf
cd asuran-cli
- cargo build --release --locked --verbose $_f
+ cargo build --release --locked $_f
}
check() {
- cargo test all --release --locked --verbose
+ cargo test all --release --locked
}
package() {
- install -Dm0755 target/release/asuran-cli "$pkgdir"/usr/bin/asuran-cli
+ cd asuran-cli
+ cargo install --path . --root="$pkgdir/usr"
+ rm "$pkgdir"/usr/.crates.toml
+ rm "$pkgdir"/usr/.crates2.json
}
sha512sums="2345b9ad0daedc4b21707bcdae72f7678f8e8d7adb470f78088ceb88f8ca18d1661bc5126d6199d5e904b528c7b5b50e9f8c3d770b28b72fcad64c17e9b87add asuran-v0.1.6.tar.gz"