summaryrefslogtreecommitdiff
path: root/user/pcsc-lite/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-25 19:29:59 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-25 19:29:59 -0500
commitb0dca5a06989f9513ac6cf3313fae2b405c21e5f (patch)
tree6e02c4542ff7e467d8140d4ec7c27b5606c295a9 /user/pcsc-lite/APKBUILD
parente8b1b68f0a79b2418768ada3e3e2436aa84296e8 (diff)
downloadpackages-b0dca5a06989f9513ac6cf3313fae2b405c21e5f.tar.gz
packages-b0dca5a06989f9513ac6cf3313fae2b405c21e5f.tar.bz2
packages-b0dca5a06989f9513ac6cf3313fae2b405c21e5f.tar.xz
packages-b0dca5a06989f9513ac6cf3313fae2b405c21e5f.zip
user/pcsc-lite: pull in, [??? version], emergency gentoo escape hatch for alioth
Diffstat (limited to 'user/pcsc-lite/APKBUILD')
-rw-r--r--user/pcsc-lite/APKBUILD68
1 files changed, 68 insertions, 0 deletions
diff --git a/user/pcsc-lite/APKBUILD b/user/pcsc-lite/APKBUILD
new file mode 100644
index 000000000..1a0af56bd
--- /dev/null
+++ b/user/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.23
+pkgrel=2
+pkgdesc="Middleware to access a smart card using SCard API (PC/SC)"
+url="http://pcsclite.alioth.debian.org/pcsclite.html"
+arch="all"
+license="Custom"
+depends=""
+depends_dev="eudev-dev"
+makedepends="$depends_dev perl perl-dev libcap-ng-utils polkit-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+install="pcsc-lite.pre-install pcsc-lite.pre-upgrade"
+source="https://distfiles.gentoo.org/distfiles/pcsc-lite-1.8.23.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="fef9f40376660bc9de938608cfdbf12ca764be1ebb59c7a1065cb74a21ecc7333f86add25028bd47ec55b2227a9e2d15e1afcb6d0aeb510636d2aadef254bec4 pcsc-lite-1.8.23.tar.bz2
+6810ab357b5bcf07bf1ad76ed17ebb8e92be4599303a4e697b87a05d43b8d2bec5d3c29d44d8ddb5d031910ea62ca52a9868e6de9a255227eaeb29d1a7ee0041 pcscd.initd"