diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-02-21 17:05:58 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-02-21 17:05:58 +0000 |
commit | b28ddc074e748330996b9592f3f8961e5ba2f7a7 (patch) | |
tree | 0508e30613358b769a260210f8a0f6442d306c41 /legacy/pcsc-lite/APKBUILD | |
parent | 6a212945a1b9cd5620cf4bb5942ef7fdfb399b49 (diff) | |
download | packages-b28ddc074e748330996b9592f3f8961e5ba2f7a7.tar.gz packages-b28ddc074e748330996b9592f3f8961e5ba2f7a7.tar.bz2 packages-b28ddc074e748330996b9592f3f8961e5ba2f7a7.tar.xz packages-b28ddc074e748330996b9592f3f8961e5ba2f7a7.zip |
move pcsc-lite to legacy for a few months as is customary
Diffstat (limited to 'legacy/pcsc-lite/APKBUILD')
-rw-r--r-- | legacy/pcsc-lite/APKBUILD | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/legacy/pcsc-lite/APKBUILD b/legacy/pcsc-lite/APKBUILD new file mode 100644 index 000000000..3066ad3bc --- /dev/null +++ b/legacy/pcsc-lite/APKBUILD @@ -0,0 +1,68 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: +pkgname=pcsc-lite +pkgver=1.8.24 +pkgrel=0 +pkgdesc="Middleware to access a smart card using SCard API (PC/SC)" +url="https://pcsclite.apdu.fr/" +arch="all" +license="BSD-3-Clause AND GPL-3.0+ AND BSD-2-Clause AND MIT" +depends="" +depends_dev="eudev-dev" +makedepends="$depends_dev perl perl-dev libcap-ng-utils polkit-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-openrc" +install="pcsc-lite.pre-install pcsc-lite.pre-upgrade" +source="https://pcsclite.apdu.fr/files/pcsc-lite-$pkgver.tar.bz2 + pcscd.initd" + +build() { + cd "$builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --disable-libusb \ + --enable-libudev \ + --disable-maintainer-mode \ + --disable-silent-rules \ + --without-systemdsystemunitdir \ + --enable-ipcdir=/run/pcscd \ + --enable-usbdropdir=/usr/lib/pcsc/drivers \ + --disable-libsystemd \ + --enable-polkit + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + install -D -m755 "$srcdir"/pcscd.initd \ + "$pkgdir"/etc/init.d/pcscd + mkdir -p "$pkgdir"/usr/lib/pcsc/drivers + + # grant sysfs access + filecap "$pkgdir"/usr/sbin/pcscd dac_override +} + +libs() { + pkgdesc="Middleware to access a smart card using SCard API (PC/SC) (libraries)" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/lib "$subpkgdir"/usr +} + +dev() { + default_dev + # move back the /usr/lib/libpcsclite.so + # see http://bugs.alpinelinux.org/issues/3236 (and 6392) + mv "$subpkgdir"/usr/lib/libpcsclite.so "$pkgdir"/usr/lib/libpcsclite.so +} + +sha512sums="df2e6a7a8179563a6dbf654ab75cf78a4b297b0562214a081d7d2b5d00fd4adf92fd892bd16aacf9d5e2867f3ad46c88a88e5834e311011f37556dd7e8936a0c pcsc-lite-1.8.24.tar.bz2 +6810ab357b5bcf07bf1ad76ed17ebb8e92be4599303a4e697b87a05d43b8d2bec5d3c29d44d8ddb5d031910ea62ca52a9868e6de9a255227eaeb29d1a7ee0041 pcscd.initd" |