APKBUILD 1.01 KB
Newer Older
Alexander Sack's avatar
Alexander Sack committed
1 2
# Contributor: Alexander Sack <asac@pantacor.com>
# Maintainer: Alexander Sack <asac@pantacor.com>
Leo's avatar
Leo committed
3 4
pkgname=tpm2-tools
pkgver=4.2
Alexander Sack's avatar
Alexander Sack committed
5 6 7
pkgrel=0
pkgdesc="TPM2 Tools"
url="https://github.com/tpm2-software/tpm2-tools/"
8
arch="all"
Alexander Sack's avatar
Alexander Sack committed
9
license="BSD-2-Clause"
10
makedepends="tpm2-tss-dev tpm2-tss-rc tpm2-tss-tctildr
Leo's avatar
Leo committed
11 12
	openssl-dev curl-dev util-linux-dev"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
Alexander Sack's avatar
Alexander Sack committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
_sourcever="${pkgver/_/-}"
source="https://github.com/tpm2-software/tpm2-tools/releases/download/$_sourcever/tpm2-tools-$_sourcever.tar.gz"
options="!check"


build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

Leo's avatar
Leo committed
30 31 32 33 34 35 36 37 38
bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	amove usr/share/bash-completion/completions
}

sha512sums="7aaf549dd77307e5ad93d4b34737d684c8a7384996143124f10b188f5e99860940902cee83538e6957997859420dd430d6d27979b223beae515aab94ac8fb235  tpm2-tools-4.2.tar.gz"