mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
yubikey-personalization: imported from ccr, updated to 1.18.0
This commit is contained in:
parent
e6f3364235
commit
7930224be6
37
yubikey-personalization/PKGBUILD
Normal file
37
yubikey-personalization/PKGBUILD
Normal file
@ -0,0 +1,37 @@
|
||||
pkgname=yubikey-personalization
|
||||
pkgver=1.18.0
|
||||
pkgrel=1
|
||||
pkgdesc='Yubico YubiKey Personalization library and tool'
|
||||
arch=('x86_64')
|
||||
url='https://github.com/Yubico/yubikey-personalization'
|
||||
license=('BSD')
|
||||
depends=('libusb' 'yubico-c-client')
|
||||
makedepends=('systemd' 'asciidoc')
|
||||
provides=('ykpers')
|
||||
conflicts=('ykpers')
|
||||
install='yubikey-personalization.install'
|
||||
source=("https://github.com/Yubico/$pkgname/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('7cf5fa315132e4473caca509d3a0768ed490938d1068e8aa46be200fc751eff5')
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
autoreconf -fi
|
||||
./configure --prefix=/usr --with-udevrulesdir=/usr/lib/udev/rules.d/
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
install -D -m0644 COPYING $pkgdir/usr/share/licenses/yubikey-personalization/COPYING
|
||||
install -D -m0644 README $pkgdir/usr/share/doc/yubikey-personalization/README
|
||||
make DESTDIR=$pkgdir install
|
||||
}
|
||||
|
15
yubikey-personalization/yubikey-personalization.install
Normal file
15
yubikey-personalization/yubikey-personalization.install
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
post_upgrade() {
|
||||
if systemctl -q is-active systemd-udevd; then
|
||||
udevadm control --reload-rules
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
post_upgrade
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_upgrade
|
||||
}
|
Loading…
Reference in New Issue
Block a user