blob: 105441c8a8a363b5f40bd8d1353bd49373554df5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Alexander Kjäll <alexander.kjall@gmail.com>
# Maintainer: Stig Otnes Kolstad <stig@stigok.com>
pkgname=ripasso-git
_pkgrelname=ripasso
pkgver=746.efd781f
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/"
arch=('x86_64')
license=("GPL3")
depends=('openssl' 'libxcb' 'libgpg-error' 'zlib' 'gpgme' 'libgit2')
makedepends=('gettext' 'rust')
source=("git+https://github.com/cortex/ripasso.git")
conflicts=('ripasso')
md5sums=('SKIP')
build() {
cd "$_pkgrelname" || exit 1
cargo build -p ripasso-cursive --release
}
pkgver() {
cd ${srcdir}/${_pkgrelname} || exit 1
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$_pkgrelname" || exit 1
gzip -fk $srcdir/$_pkgrelname/target/man-page/cursive/ripasso-cursive.1
mkdir -p "$pkgdir/usr/share/man/man1/"
mkdir -p "$pkgdir/usr/share/ripasso/"
install -Dm0644 "$srcdir/$_pkgrelname/target/man-page/cursive/ripasso-cursive.1.gz" "$pkgdir/usr/share/man/man1/"
install -Dm0755 "$srcdir/$_pkgrelname/target/release/ripasso-cursive" "$pkgdir/usr/bin/$_pkgrelname-cursive"
install -Dm0644 "$srcdir/$_pkgrelname/target/translations/cursive/de.mo" "$pkgdir/usr/share/ripasso/"
install -Dm0644 "$srcdir/$_pkgrelname/target/translations/cursive/fr.mo" "$pkgdir/usr/share/ripasso/"
install -Dm0644 "$srcdir/$_pkgrelname/target/translations/cursive/it.mo" "$pkgdir/usr/share/ripasso/"
install -Dm0644 "$srcdir/$_pkgrelname/target/translations/cursive/nb.mo" "$pkgdir/usr/share/ripasso/"
install -Dm0644 "$srcdir/$_pkgrelname/target/translations/cursive/nn.mo" "$pkgdir/usr/share/ripasso/"
install -Dm0644 "$srcdir/$_pkgrelname/target/translations/cursive/sv.mo" "$pkgdir/usr/share/ripasso/"
}
|