# Contributor: Carlo Landmeter # Contributor: Timo Teräs # Maintainer: Timo Teräs pkgname=pcsc-lite pkgver=2.0.0 pkgrel=2 pkgdesc="Middleware to access a smart card using SCard API (PC/SC)" url="https://pcsclite.apdu.fr/" arch="all" license="BSD-3-Clause AND BSD-2-Clause AND ISC" depends_dev=" $pkgname-libs=$pkgver-r$pkgrel eudev-dev " makedepends=" $depends_dev flex libcap-ng-utils perl-dev " install="$pkgname.pre-install $pkgname.pre-upgrade" subpackages=" $pkgname-static $pkgname-dev $pkgname-doc $pkgname-spy-libs:spylibs $pkgname-libs $pkgname-openrc " source="https://pcsclite.apdu.fr/files/pcsc-lite-$pkgver.tar.bz2 pcscd.initd " build() { ./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 \ --disable-polkit \ --disable-strict \ --enable-static make } check() { make check } package() { license="$license AND GPL-3.0-or-later" make DESTDIR="$pkgdir" install install -D -m755 "$srcdir"/pcscd.initd "$pkgdir"/etc/init.d/pcscd mkdir -p "$pkgdir"/usr/lib/pcsc/drivers } spylibs() { pkgdesc="$pkgdesc (log/debug/spy libraries)" license="GPL-3.0-or-later" amove usr/lib/libpcscspy.so.* } libs() { pkgdesc="$pkgdesc (libraries)" amove usr/lib } 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=" 4b34628d3269ae1859f19d2ab7eb74a76a55f3d76fbc9e4e420a081a065b1d0d7b98680552c7208f3265c684bed844afc6be1c2e5f103ad916ce7f38b52ee68c pcsc-lite-2.0.0.tar.bz2 5a8b3cb5b4ed9884c1032ec3c4c51167b8771185e8ea4122e40de4a92135cc3687a1df43bc877cf5ebcfe9392a17035873d8c052d58243eb681a3e93a44c5773 pcscd.initd "