# Contributor: Carlo Landmeter # Contributor: Timo Teräs # Maintainer: Timo Teräs setvar pkgname = 'pcsc-lite' setvar pkgver = '1.8.22' setvar pkgrel = '0' setvar pkgdesc = ""Middleware to access a smart card using SCard API (PC/SC)"" setvar url = ""http://pcsclite.alioth.debian.org/pcsclite.html"" setvar arch = ""all"" setvar license = ""Custom"" setvar depends = """" setvar depends_dev = ""eudev-dev"" setvar makedepends = ""$depends_dev perl perl-dev libcap-ng-utils"" setvar install = ""pcsc-lite.pre-install pcsc-lite.pre-upgrade"" setvar subpackages = ""$pkgname-dev $pkgname-doc $pkgname-libs"" setvar source = ""https://alioth.debian.org/frs/download.php/file/4225/pcsc-lite-1.8.22.tar.bz2 pcscd.initd"" setvar builddir = ""$srcdir"/pcsc-lite-$pkgver" proc 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-polkit \ || return 1 make || return 1 } proc package { cd $builddir make DESTDIR="$pkgdir" install || return 1 install -D -m755 "$srcdir"/pcscd.initd \ "$pkgdir"/etc/init.d/pcscd || return 1 mkdir -p "$pkgdir"/usr/lib/pcsc/drivers # grant sysfs access filecap "$pkgdir"/usr/sbin/pcscd dac_override } proc libs { setvar pkgdesc = ""Middleware to access a smart card using SCard API (PC/SC) (libraries)"" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/lib \ "$subpkgdir"/usr || return 1 } proc dev { default_dev || return 1 # 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 || return 1 } setvar sha512sums = ""762eccf6a25040653f563b93bf11262ddc015323d06d759a3472ba80af0489804410ba17c7e5330ccd4b5accc8b7314c80b5e99da278561d3818d8c381e6a025 pcsc-lite-1.8.22.tar.bz2 6810ab357b5bcf07bf1ad76ed17ebb8e92be4599303a4e697b87a05d43b8d2bec5d3c29d44d8ddb5d031910ea62ca52a9868e6de9a255227eaeb29d1a7ee0041 pcscd.initd""