diff options
author | Orhun Parmaksız | 2023-03-10 23:44:30 +0300 |
---|---|---|
committer | Orhun Parmaksız | 2023-03-10 23:44:30 +0300 |
commit | b8709b33bf44b38ad052a285d92ac84c587fabb2 (patch) | |
tree | 21aba971833789fc9e0d4a407f14fb7e5e93fc68 | |
parent | e52825a9e9d1b3250b7e22cbe239ab2fd9e165aa (diff) | |
download | aur-b8709b33bf44b38ad052a285d92ac84c587fabb2.tar.gz |
upgpkg: cargo-public-api-git 0.27.3.r4.g10e912b-1
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 10 insertions, 2 deletions
@@ -1,6 +1,6 @@ pkgbase = cargo-public-api-git pkgdesc = List and diff the public API of Rust library crates (git) - pkgver = 0.27.2.r0.ge733bb9 + pkgver = 0.27.3.r4.g10e912b pkgrel = 1 url = https://github.com/Enselic/cargo-public-api arch = x86_64 @@ -2,7 +2,7 @@ # https://github.com/orhun/pkgbuilds pkgname=cargo-public-api-git -pkgver=0.27.2.r0.ge733bb9 +pkgver=0.27.3.r4.g10e912b pkgrel=1 pkgdesc="List and diff the public API of Rust library crates (git)" arch=('x86_64') @@ -25,11 +25,16 @@ pkgver() { prepare() { cd "${pkgname%-git}" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + mkdir completions } build() { cd "${pkgname%-git}" cargo build --release --frozen + local compgen="target/release/${pkgname%-git} completions" + $compgen bash > "completions/${pkgname%-git}" + $compgen fish > "completions/${pkgname%-git}.fish" + $compgen zsh > "completions/_${pkgname%-git}" } # tests require nightly @@ -43,4 +48,7 @@ package() { install -Dm 755 "target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin" install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm 644 "completions/${pkgname%-git}" -t "$pkgdir/usr/share/bash-completion/completions/" + install -Dm 644 "completions/${pkgname%-git}.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d/" + install -Dm 644 "completions/_${pkgname%-git}" -t "$pkgdir/usr/share/zsh/site-functions/" } |