aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ccid/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/ccid/APKBUILD')
-rw-r--r--unmaintained/ccid/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/unmaintained/ccid/APKBUILD b/unmaintained/ccid/APKBUILD
new file mode 100644
index 0000000000..a601e197da
--- /dev/null
+++ b/unmaintained/ccid/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer:
+pkgname=ccid
+pkgver=1.4.17
+pkgrel=0
+pkgdesc="USB CCID/ICCD SmartCard reader driver"
+url="https://pcsclite.alioth.debian.org/ccid.html"
+arch="all"
+license="LGPL2.1+"
+depends="pcsc-lite"
+makedepends="perl libusb-dev pcsc-lite-dev"
+install=""
+subpackages=""
+source="https://alioth.debian.org/frs/download.php/file/4091/ccid-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/ccid-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+
+ mkdir -p "$pkgdir"/etc/udev/rules.d/ || return 1
+ cp src/92_pcscd_ccid.rules "$pkgdir"/etc/udev/rules.d/ || return 1
+}
+
+md5sums="a227a20a0dd034cd4bb7400806a0a2d0 ccid-1.4.17.tar.bz2"
+sha256sums="ccdab8a9bc1ad288242d5f9ef399405e9cb96fb09caadb43e3649cbaba84c451 ccid-1.4.17.tar.bz2"
+sha512sums="65dd0020b7b586eb6e0db5953561e8dc578daee522bf472542f05355293171a9635ea64447ecf465bc65b13a5fdeb7d223e15b53ca7045b880ba8bde859bd4eb ccid-1.4.17.tar.bz2"