blob: 0537b896ea27ddc6de491d6e3aad824b16f653ab (
plain)
1 # Description: Yubico YubiKey Personalization library and tool
2 # URL: https://github.com/Yubico/yubikey-personalization
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: yubico-c-client libusb
5 # Optional: asciidoc
6
7 name=yubikey-personalization
8 version=1.20.0
9 release=4
10 source=(#https://github.com/Yubico/yubikey-personalization/archive/v$version/$name-v$version.tar.gz 10-security-key.rules)
11 https://github.com/Yubico/yubikey-personalization/archive/d4c1d57033a45ea51189e7818954cf62508576de/$name-$version-1.tar.gz
12 10-security-key.rules)
13
14 build() {
15 #cd $name-$version
16 cd $name-d4c1d57033a45ea51189e7818954cf62508576de
17
18 prt-get isinst asciidoc || PKGMK_YK_PERS+=' --disable-documentation'
19
20 # Fix build with json-c 0.14
21 sed -e 's/TRUE/1/' -e 's/FALSE/0/' -i ykpers-json.c
22
23 autoreconf --install
24 ./configure --prefix=/usr $PKGMK_YK_PERS \
25 --with-udevrulesdir=/lib/udev/rules.d/
26 make
27 make DESTDIR=$PKG install
28 install -D -m0644 $SRC/10-security-key.rules \
29 $PKG/etc/udev/rules.d/10-security-key.rules
30 }
|