diff options
author | Caleb Maclennan | 2021-08-06 13:56:37 +0300 |
---|---|---|
committer | Caleb Maclennan | 2021-08-06 13:56:37 +0300 |
commit | 7fde32ba0237d6cc62845b28b9a3c0780aeca259 (patch) | |
tree | 976afd51b2b0a916048c98a1e40f44d36adf970f | |
parent | fe448d5fbd8d486609ffe156537fdc1801150b09 (diff) | |
download | aur-7fde32ba0237d6cc62845b28b9a3c0780aeca259.tar.gz |
upgpkg: sear 0.0.0-1
upstream release
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 25 insertions, 14 deletions
@@ -4,11 +4,9 @@ pkgbase = sear pkgrel = 1 url = https://github.com/iqlusioninc/sear arch = x86_64 - license = MIT license = Apache makedepends = cargo - source = sear-0.0.0.zip::https://github.com/iqlusioninc/sear/archive/ba1f37f5dd1a32c5de2a20e8c385678d95d403a8.zip + source = sear-ba1f37f5dd1a32c5de2a20e8c385678d95d403a8.zip::https://github.com/iqlusioninc/sear/archive/ba1f37f5dd1a32c5de2a20e8c385678d95d403a8.zip sha256sums = 391e5fd18fa7ca14eb866b448f8e5efe355c276cf4b78814c97bdaffb25f8811 pkgname = sear - @@ -8,22 +8,35 @@ pkgname=sear pkgver=0.0.0 _sha=ba1f37f5dd1a32c5de2a20e8c385678d95d403a8 pkgrel=1 -pkgdesc="Signed/Encrypted ARchive" -arch=('x86_64') +pkgdesc='Signed/Encrypted ARchive' +arch=(x86_64) url="https://github.com/iqlusioninc/$pkgname" -license=('MIT' 'Apache') -makedepends=('cargo') -source=("$pkgname-$pkgver.zip::$url/archive/$_sha.zip") +license=(Apache) +makedepends=(cargo) +_archive="$pkgname-$_sha" +source=("$_archive.zip::$url/archive/$_sha.zip") sha256sums=('391e5fd18fa7ca14eb866b448f8e5efe355c276cf4b78814c97bdaffb25f8811') +prepare() { + cd "$_archive" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + build() { - cd "$pkgname-$_sha" - cargo build --release --locked --all-features + cd "$_archive" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +check() { + cd "$_archive" + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --all-features } package() { - cd "$pkgname-$_sha" - install -Dm755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" - install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md - install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE + cd "$_archive" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" + install -Dm0644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md } |