summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlexander Kjäll2019-09-28 17:20:39 +0200
committerAlexander Kjäll2019-09-28 17:20:39 +0200
commitfe9812995331d1d40c02183ae30c9b4b31bf37b5 (patch)
treef5c7758a6fc9b52051b83bb49ea6501aa37fa6fb /PKGBUILD
parentdec816d1e87e92fdcf0a2f7ed7568a15f6d06d67 (diff)
downloadaur-fe9812995331d1d40c02183ae30c9b4b31bf37b5.tar.gz
improved package with the man page, also removed the setuid bit that was there by misstake
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2d52c07c23e..56d09a5ae7d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Alexander Kjäll <alexander.kjall@gmail.com>
pkgname=ripasso-git
pkgrelname=ripasso
-pkgver=149
+pkgver=181
pkgrel=1
pkgdesc="A password manager that uses the file format of the standard unix password manager 'pass', implemented in rust."
url="https://github.com/cortex/ripasso/"
@@ -15,7 +15,7 @@ md5sums=('SKIP')
build() {
cd "$pkgrelname" || exit 1
- cargo build -p ripasso-cursive --release
+ cargo build -p ripasso-cursive -p ripasso-man --release
}
pkgver() {
@@ -25,5 +25,10 @@ pkgver() {
package() {
cd "$pkgrelname" || exit 1
- install -Dm4555 "$srcdir/$pkgrelname/target/release/ripasso-cursive" "$pkgdir/usr/bin/$pkgrelname-cursive"
+ $srcdir/$pkgrelname/target/release/ripasso-man > $srcdir/$pkgrelname/ripasso-cursive.1
+ rm -f $srcdir/$pkgrelname/ripasso-cursive.1.gz
+ gzip $srcdir/$pkgrelname/ripasso-cursive.1
+ mkdir -p "$pkgdir/usr/share/man/man1/"
+ install -Dm0644 "$srcdir/$pkgrelname/ripasso-cursive.1.gz" "$pkgdir/usr/share/man/man1/"
+ install -Dm0555 "$srcdir/$pkgrelname/target/release/ripasso-cursive" "$pkgdir/usr/bin/$pkgrelname-cursive"
}