[arch-commits] Commit in (4 files)

Jonas Witschel diabonas at archlinux.org
Tue Oct 22 17:37:43 UTC 2019


    Date: Tuesday, October 22, 2019 @ 17:37:43
  Author: diabonas
Revision: 518388

Move tpm2-totp 0.2.0 from the AUR to [community]

Added:
  tpm2-totp/
  tpm2-totp/repos/
  tpm2-totp/trunk/
  tpm2-totp/trunk/PKGBUILD

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Added: tpm2-totp/trunk/PKGBUILD
===================================================================
--- tpm2-totp/trunk/PKGBUILD	                        (rev 0)
+++ tpm2-totp/trunk/PKGBUILD	2019-10-22 17:37:43 UTC (rev 518388)
@@ -0,0 +1,37 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=tpm2-totp
+pkgver=0.2.0
+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/tpm2-software/tpm2-totp'
+license=('BSD')
+depends=('qrencode' 'tpm2-tss')
+checkdepends=('ibm-sw-tpm2' 'iproute2' 'oath-toolkit' 'tpm2-tools')
+optdepends=('initramfs: dracut and mkinitcpio hooks to display the TOTP during boot')
+source=("$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
+sha512sums=('02cc21246e8f396bc500d585bc290e9034c55296c7d9354a787a413858013d8ac3c74b02c2156bfbdb29dd03e46cc2a80bad698d3399e3eafb7e996b736925ff'
+            'SKIP')
+validpgpkeys=('D6B4D8BAC7E0CC97DCD4AC7272E88B53F7A95D84'  # Andreas Fuchs <andreas.fuchs at sit.fraunhofer.de>
+              'FE2E6249201CA54A4FB90D066E80CA1446879D04') # Jonas Witschel <diabonas at gmx.de>
+
+build() {
+	cd "$pkgname-$pkgver"
+	./configure --prefix=/usr \
+	            --libexecdir=/usr/lib \
+	            --with-dracutmodulesdir=/usr/lib/dracut/modules.d \
+	            --with-mkinitcpiodir=/usr/lib/initcpio \
+	            $( ((CHECKFUNC)) && echo --enable-integration)
+	make
+}
+
+check() {
+	cd "$pkgname-$pkgver"
+	make check
+}
+
+package() {
+	cd "$pkgname-$pkgver"
+	make DESTDIR="$pkgdir" install
+	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}



More information about the arch-commits mailing list