aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tpm/APKBUILD
blob: 0a04112ded72dd2c2e59415459e5ac6eed7664f5 (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.2
pkgrel=1
pkgdesc="A tiny password manager"
url="http://github.com/nmeum/$pkgname"
arch="noarch"
license="GPL3"
depends="bash gnupg"
makedepends="perl"
install=""
subpackages="
	$pkgname-doc
	$pkgname-zsh-completion:bashcomp
	$pkgname-bash-completion:zshcomp"
source="$pkgname-$pkgver.tar.gz::https://github.com/nmeum/$pkgname/archive/$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	make -C "$_builddir"
}

package() {
	make DESTDIR="$pkgdir" PREFIX="/usr" \
		-C "$_builddir" install
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash"
	arch="noarch"

	install -Dm644 "$_builddir"/bash_completion \
		"$subpkgdir"/usr/share/bash-completion/completions/${pkgname}
}

zshcomp() {
	depends=""
	pkgdesc="Zsh completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel zsh"
	arch="noarch"

	install -Dm644 "$_builddir"/zsh_completion \
		"$subpkgdir"/usr/share/zsh/site-functions/_${pkgname}
}

md5sums="d522223a0776d337b75ec686dca3d50b  tpm-1.2.tar.gz"
sha256sums="348e172a7340535f2d507cd23350d5c635d489f942424e871169375ffe416e59  tpm-1.2.tar.gz"
sha512sums="6eb014d1fa769ac8082e97802c774488b5bbe1c4d3055cf0beb6460c082fcdcd6a267600430d13e38f7ac6a0286ee4dbd9f47e4ddd43901dffb4ec2711ee4bdc  tpm-1.2.tar.gz"