diff options
author | Jonas Witschel | 2018-12-19 00:09:08 +0100 |
---|---|---|
committer | Jonas Witschel | 2018-12-19 00:09:08 +0100 |
commit | 1cede33019b9fbce32b8294e601e39cb3ab30f1c (patch) | |
tree | 5c396f0ece12dd5e4b0e3b3a14d6c508210fb163 | |
download | aur-1cede33019b9fbce32b8294e601e39cb3ab30f1c.tar.gz |
Initial upload: tpm2-totp-git r1.51c2aee-1
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..86dacb293813 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = tpm2-totp-git + pkgdesc = Attest the trustworthiness of a device against a human using time-based one-time passwords + pkgver = r1.51c2aee + pkgrel = 1 + url = https://github.com/AndreasFuchsSIT/tpm2-totp + arch = x86_64 + license = BSD + checkdepends = ibm-sw-tpm2 + makedepends = git + makedepends = autoconf-archive + makedepends = oath-toolkit + makedepends = pandoc + depends = qrencode + depends = tpm2-tss + provides = tpm2-totp + conflicts = tpm2-totp + source = git+https://github.com/AndreasFuchsSIT/tpm2-totp.git + sha512sums = SKIP + +pkgname = tpm2-totp-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6b44b4f09c6a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Jonas Witschel <diabonas at gmx dot de> +pkgname=tpm2-totp-git +pkgver=r1.51c2aee +pkgrel=1 +pkgdesc='Attest the trustworthiness of a device against a human using time-based one-time passwords' +arch=('x86_64') +url='https://github.com/AndreasFuchsSIT/tpm2-totp' +license=('BSD') +depends=('qrencode' 'tpm2-tss') +makedepends=('git' 'autoconf-archive' 'oath-toolkit' 'pandoc') +checkdepends=('ibm-sw-tpm2') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("git+$url.git") +sha512sums=('SKIP') +BUILDENV+=('!check') # see warning below before enabling tests + +pkgver() { + cd "${pkgname%-git}" + printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${pkgname%-git}" + autoreconf --install --force +} + +build() { + cd "${pkgname%-git}" + ./configure --prefix=/usr + make +} + +# WARNING: currently tests are disabled by default because they use an available hardware TPM. +# This should generally be safe, but the tests might fail if your TPM does not support all +# cryptographic algorithms used by the test suite and some data might get left behind in the +# TPM's storage (NVRAM). Familiarise yourself with the documentation before enabling tests +# or build in a clean chroot that does not have access to the physical TPM device. +check() { + cd "${pkgname%-git}" + make --jobs=1 check +} + +package() { + cd "${pkgname%-git}" + make DESTDIR="$pkgdir" install + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |