blob: d5e70f7a494d927f5ea5fe4728b91ba4cc4f0c07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Jonas Witschel <diabonas@archlinux.org>
pkgname=tpm2-totp-git
pkgver=0.2.0rc0.r0.b15fac3
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')
makedepends=('git' 'autoconf-archive' 'doxygen' 'pandoc' 'plymouth')
checkdepends=('ibm-sw-tpm2' 'iproute2' 'oath-toolkit' 'procps-ng' 'psmisc' 'tpm2-tools')
optdepends=('initramfs: initramfs hooks to display the TOTP during boot'
'plymouth: display the TOTP during boot using plymouth messages')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url.git")
sha512sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long | sed 's/^v//;s/[-_]rc/rc/;s/\([^-]*-\)g/r\1/;s/-/./g'
}
prepare() {
cd "${pkgname%-git}"
autoreconf --install --force
}
build() {
cd "${pkgname%-git}"
(( CHECKFUNC )) && _opts=('--enable-integration')
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--with-dracutmodulesdir=/usr/lib/dracut/modules.d \
--with-mkinitcpiodir=/usr/lib/initcpio \
"${_opts[@]}"
make
}
check() {
cd "${pkgname%-git}"
make check
}
package() {
cd "${pkgname%-git}"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
|