aboutsummaryrefslogtreecommitdiffstats
path: root/community/tpm/APKBUILD
blob: 4f02e9a9e7e1cbd7f0989d9a7942df9cc80a3a93 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=tpm
pkgver=1.3.2
pkgrel=0
pkgdesc="A tiny password manager"
url="https://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"

	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"

	install -Dm644 "$builddir"/contrib/zsh_completion \
		"$subpkgdir"/usr/share/zsh/site-functions/_$pkgname || return 1
}

md5sums="d86118c38e908663c8d1422c79f6ce1d  tpm-1.3.2.tar.gz"
sha256sums="9ea145e7f731c50ba3a8dfa252c7d0b31cd5b12b03db33dd95d7d8ebb53d4e6b  tpm-1.3.2.tar.gz"
sha512sums="27486d511cbfd5c62f45ab2094844cf20215268f8e11f7c04ed54ce8d6af5de5b1241421c08408bbbbfdba5b037a0447c10f830fae7c41c6bf7bdba961f399e6  tpm-1.3.2.tar.gz"