Date: Tuesday, October 22, 2019 @ 17:37:59
  Author: diabonas
Revision: 518389

archrelease: copy trunk to community-x86_64

Added:
  tpm2-totp/repos/community-x86_64/
  tpm2-totp/repos/community-x86_64/PKGBUILD
    (from rev 518388, tpm2-totp/trunk/PKGBUILD)

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

Copied: tpm2-totp/repos/community-x86_64/PKGBUILD (from rev 518388, 
tpm2-totp/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2019-10-22 17:37:59 UTC (rev 518389)
@@ -0,0 +1,37 @@
+# Maintainer: Jonas Witschel <diabo...@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.fu...@sit.fraunhofer.de>
+              'FE2E6249201CA54A4FB90D066E80CA1446879D04') # Jonas Witschel 
<diabo...@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"
+}

Reply via email to