31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
# Description: Yubico YubiKey Personalization library and tool
|
|
# URL: https://github.com/Yubico/yubikey-personalization
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: yubico-c-client libusb
|
|
# Optional: asciidoc
|
|
|
|
name=yubikey-personalization
|
|
version=1.20.0
|
|
release=4
|
|
source=(#https://github.com/Yubico/yubikey-personalization/archive/v$version/$name-v$version.tar.gz 10-security-key.rules)
|
|
https://github.com/Yubico/yubikey-personalization/archive/d4c1d57033a45ea51189e7818954cf62508576de/$name-$version-1.tar.gz
|
|
10-security-key.rules)
|
|
|
|
build() {
|
|
#cd $name-$version
|
|
cd $name-d4c1d57033a45ea51189e7818954cf62508576de
|
|
|
|
prt-get isinst asciidoc || PKGMK_YK_PERS+=' --disable-documentation'
|
|
|
|
# Fix build with json-c 0.14
|
|
sed -e 's/TRUE/1/' -e 's/FALSE/0/' -i ykpers-json.c
|
|
|
|
autoreconf --install
|
|
./configure --prefix=/usr $PKGMK_YK_PERS \
|
|
--with-udevrulesdir=/lib/udev/rules.d/
|
|
make
|
|
make DESTDIR=$PKG install
|
|
install -D -m0644 $SRC/10-security-key.rules \
|
|
$PKG/etc/udev/rules.d/10-security-key.rules
|
|
}
|