diff options
author | Caleb Maclennan | 2021-08-06 14:11:21 +0300 |
---|---|---|
committer | Caleb Maclennan | 2021-08-06 14:11:21 +0300 |
commit | 117335f7c4e70200172b625644a112ca3296388b (patch) | |
tree | de2f14d57c53861792ba9028d827de175997c384 | |
parent | 5a5b4653a7ee7b13cd557e52ae189c8e31e35cf0 (diff) | |
download | aur-117335f7c4e70200172b625644a112ca3296388b.tar.gz |
upgpkg: tin-summer 1.21.14-2
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 30 insertions, 25 deletions
@@ -1,14 +1,13 @@ pkgbase = tin-summer pkgdesc = Find build artifacts that are taking up disk space pkgver = 1.21.14 - pkgrel = 1 + pkgrel = 2 url = https://github.com/vmchale/tin-summer arch = x86_64 license = BSD - makedepends = rust + makedepends = cargo conflicts = mono source = tin-summer-1.21.14.tar.gz::https://github.com/vmchale/tin-summer/archive/1.21.14.tar.gz sha256sums = 8a4883b7a6354c6340e73a87d1009c0cc79bdfa135fe947317705dad9f0a6727 pkgname = tin-summer - @@ -1,41 +1,47 @@ # Maintainer: Caleb Maclennan <caleb@alerque.com> +_binname=sn pkgname=tin-summer pkgver=1.21.14 -pkgrel=1 +pkgrel=2 pkgdesc='Find build artifacts that are taking up disk space' -arch=('x86_64') +arch=(x86_64) url="https://github.com/vmchale/$pkgname" -license=('BSD') -makedepends=('rust') -conflicts=('mono') -source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +license=(BSD) +makedepends=(cargo) +conflicts=(mono) +_archive="$pkgname-$pkgver" +source=("$_archive.tar.gz::$url/archive/$pkgver.tar.gz") sha256sums=('8a4883b7a6354c6340e73a87d1009c0cc79bdfa135fe947317705dad9f0a6727') -_binname=sn prepare() { - cd "$pkgname-$pkgver" - mkdir -p ./target/release/completions - cargo fetch + cd "$_archive" + mkdir -p ./target/release/completions + # Upstream Issue: https://github.com/vmchale/tin-summer/issues/35 + cargo update + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { - cd "$pkgname-$pkgver" - export BASH_COMPLETIONS_DIR="./target/release/completions" - export FISH_COMPLETIONS_DIR="./target/release/completions" - cargo build --release --locked --features bash,fish - mv ./target/release/completions/$_binname{.bash,} + cd "$_archive" + export BASH_COMPLETIONS_DIR="./target/release/completions" + export FISH_COMPLETIONS_DIR="./target/release/completions" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --features bash,fish + mv ./target/release/completions/$_binname{.bash,} } check() { - cd "$pkgname-$pkgver" - cargo check --release --locked + cd "$_archive" + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --features bash,fish } package() { - cd "$pkgname-$pkgver" - install -Dm755 -t "$pkgdir/usr/bin/" "target/release/$_binname" - install -Dm664 -t "$pkgdir/usr/share/licenses/$pkgname/" "LICENSE" - install -Dm644 -t "$pkgdir/usr/share/bash-completion/completions/" target/release/completions/$_binname - install -Dm644 -t "$pkgdir/usr/share/fish/vendor_completions.d/" target/release/completions/$_binname.fish + cd "$_archive" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$_binname" + install -Dm0664 -t "$pkgdir/usr/share/licenses/$pkgname/" "LICENSE" + install -Dm0644 -t "$pkgdir/usr/share/bash-completion/completions/" "target/release/completions/$_binname" + install -Dm0644 -t "$pkgdir/usr/share/fish/vendor_completions.d/" "target/release/completions/$_binname.fish" } |