summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormorganamilo2021-11-01 21:18:59 +0000
committermorganamilo2021-11-01 21:18:59 +0000
commitd96c6316e5701b3c8090cb65174d6655aef4d7cd (patch)
treebded37c895682a4ea8fb1577bf8e3ea2acabc52b /PKGBUILD
parentc9918b086b8c52b4783e6e56fe7b833b88e75e46 (diff)
downloadaur-paccat.tar.gz
v0.2.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index db0cae02616..3d25c7455a0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Morgan <morganamilo@archlinux.org>
pkgname=paccat
-pkgver=0.1.0
+pkgver=0.2.0
pkgrel=1
pkgdesc='Print pacman package files'
url='https://github.com/morganamilo/paccat'
@@ -9,14 +9,19 @@ arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
license=('GPL3')
makedepends=('cargo')
depends=('pacman')
-sha256sums=('9fcef179ec64ac5ddfcd186f3aacd5ce34b12c16a58eed68b54ba6955ca50240')
+sha256sums=('fb47c95307d94927b19f9377aa0ed06a98ed8e398ecf6ad7c02c21ca49f8d2fd')
build () {
cd "$srcdir/$pkgname-$pkgver"
- cargo build --locked --release --target-dir target
+ COMPLETIONS_DIR=target cargo build --locked --release --target-dir target
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 target/release/paccat -t "${pkgdir}/usr/bin/"
+
+ install -Dm644 man/$pkgname.1 -t "$pkgdir/usr/share/man/man1/"
+ install -Dm644 target/$pkgname.bash -t "$pkgdir/usr/share/bash-completion/completions"
+ install -Dm644 target/$pkgname.fish -t "$pkgdir/usr/share/fish/completions"
+ install -Dm644 target/_$pkgname -t "$pkgdir/usr/share/zsh/site-functions"
}