diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/tpm2-tss-engine/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/tpm2-tss-engine/APKBUILD b/testing/tpm2-tss-engine/APKBUILD new file mode 100644 index 0000000000..3acb06aea4 --- /dev/null +++ b/testing/tpm2-tss-engine/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: +# Maintainer: Alexander Sack <asac@pantacor.com> +pkgname="tpm2-tss-engine" +pkgver="1.0.1" +pkgrel=0 +pkgdesc="tpm2tss engine for openssl" +url="https://github.com/tpm2-software/tpm2-tss-engine/" +arch="all" +license="BSD-2-Clause" +makedepends="tpm2-tss-dev openssl-dev doxygen linux-headers" +subpackages=" + $pkgname-dev + $pkgname-doc + $pkgname-bash-completion:bashcomp:noarch + " +source="https://github.com/tpm2-software/tpm2-tss-engine/releases/download/v$pkgver/tpm2-tss-engine-$pkgver.tar.gz" + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --disable-static + make +} + +package() { + make DESTDIR="$pkgdir" install +} + +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + mkdir -p "$subpkgdir"/usr/share/bash-completion + mv "$pkgdir"/usr/share/bash-completion/completions \ + "$subpkgdir"/usr/share/bash-completion + rmdir -p "$pkgdir"/usr/share/bash-completion || : +} + +sha512sums="106fc6aadf0b4b27c3b38be596356aa59b4b76ec1602e8c5564aec6b4be7e2b5d6077006ee13d41e58402255b879aadaa966c758b5b326ae32742007ce2ef238 tpm2-tss-engine-1.0.1.tar.gz" |