blob: 10d245941129041a998463138010cd741f3f2fa5 (
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
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=tpm
pkgver=1.3.1
pkgrel=0
pkgdesc="A tiny password manager"
url="http://github.com/nmeum/$pkgname"
arch="noarch"
license="GPL3+"
depends="gnupg"
makedepends="perl"
install=""
subpackages="
$pkgname-doc
$pkgname-zsh-completion:zshcomp
$pkgname-bash-completion:bashcomp"
source="$pkgname-$pkgver.tar.gz::https://github.com/nmeum/$pkgname/archive/$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
build() {
make -C "$_builddir" || return 1
}
package() {
make DESTDIR="$pkgdir" PREFIX="/usr" \
-C "$_builddir" install || return 1
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
arch="noarch"
install -Dm644 "$_builddir"/contrib/bash_completion \
"$subpkgdir"/usr/share/bash-completion/completions/${pkgname} || return 1
}
zshcomp() {
depends=""
pkgdesc="Zsh completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
arch="noarch"
install -Dm644 "$_builddir"/contrib/zsh_completion \
"$subpkgdir"/usr/share/zsh/site-functions/_${pkgname} || return 1
}
md5sums="fbfa92880d4c82ae3fd22684240e9f19 tpm-1.3.1.tar.gz"
sha256sums="b73d995d89537b8cf3deee432bf4e510a4f72dd9e8bc3a30112a7b569c47fc35 tpm-1.3.1.tar.gz"
sha512sums="417f2a0b1eeb02ffd8ffefbfd3cbfe46568433d01edc9d5285834c7946307d86dc3723b0da52249ec95374ae8db51f036b5fae2791bab11b015b764c55483dab tpm-1.3.1.tar.gz"
|