diff options
author | Orhun Parmaksız | 2023-11-25 01:01:40 +0300 |
---|---|---|
committer | Orhun Parmaksız | 2023-11-25 01:01:40 +0300 |
commit | 3a15c2321cb29510f32ba7ca3cfcd6b941316083 (patch) | |
tree | c560d773bf4f119fca64bed6249138eea706441d | |
parent | 2846d07e54ff59ff5a8e170d879b94bba887bb0c (diff) | |
download | aur-3a15c2321cb29510f32ba7ca3cfcd6b941316083.tar.gz |
upgpkg: fblog-git 4.6.0.r2.g8a1c87f-1
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 11 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = fblog-git pkgdesc = Small command-line JSON log viewer (git) - pkgver = 4.4.0.r16.g0a387c5 + pkgver = 4.6.0.r2.g8a1c87f pkgrel = 1 url = https://github.com/brocode/fblog arch = x86_64 @@ -2,7 +2,7 @@ # https://github.com/orhun/pkgbuilds pkgname=fblog-git -pkgver=4.4.0.r16.g0a387c5 +pkgver=4.6.0.r2.g8a1c87f pkgrel=1 pkgdesc="Small command-line JSON log viewer (git)" arch=('x86_64') @@ -24,11 +24,16 @@ pkgver() { prepare() { cd "${pkgname%-git}" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + mkdir -p completions } build() { cd "${pkgname%-git}" cargo build --release --frozen + local compgen="target/release/${pkgname%-git} --generate-completions" + $compgen bash > "completions/${pkgname%-git}" + $compgen fish > "completions/${pkgname%-git}.fish" + $compgen zsh > "completions/_${pkgname%-git}" } check() { @@ -39,6 +44,9 @@ check() { package() { cd "${pkgname%-git}" install -Dm 755 "target/release/${pkgname%-git}" -t "${pkgdir}/usr/bin" - install -Dm 644 README.org -t "$pkgdir/usr/share/doc/$pkgname" + 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/" } |