blob: c71930be5f8659876449d0ee4b8c1acb181d2343 (
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
50
51
52
53
54
55
56
57
58
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=libu2f-host
pkgver=1.1.10
pkgrel=4
pkgdesc="Yubico U2F (Universal 2nd Factor) host C library"
url="https://developers.yubico.com/libu2f-host/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
eudev-dev
hidapi-dev
json-c-dev
linux-headers
"
provides="$pkgname-libs=$pkgver-r$pkgrel" # for backward compatibility (Alpine <3.16)
replaces="$pkgname-libs" # for backward compatibility (Alpine <3.16)
install="$pkgname.post-upgrade"
subpackages="
$pkgname-dev
$pkgname-doc
u2f-host:u2f_host
"
source="https://developers.yubico.com/libu2f-host/Releases/libu2f-host-$pkgver.tar.xz
json-c-0.14.patch
"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--with-udevrulesdir=/usr/lib/udev/rules.d
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/share/gtk-doc
}
u2f_host() {
pkgdesc="Yubico U2F (Universal 2nd Factor) host CLI tool"
depends="$pkgname=$pkgver-r$pkgrel"
amove usr/bin
}
sha512sums="91c5bf3994f1d3c9bd144f54b14b0404d839c15bef3c318619decdf1bd37214bcff33927af78a9826ff7d0bc9907c912a0e31104ae68d3a727a8436f2a1dbf7a libu2f-host-1.1.10.tar.xz
5221305e8474303a9b7db88b1a906d3d596251da412fc1b19cd6e9d8ec0ecbb8d93f91d3437c73c6b4226c4b7f0e80d4e37456d742e54ac5324bb0d36619ea67 json-c-0.14.patch"
|