aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opensc
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2013-09-30 14:29:37 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2013-09-30 14:33:36 +0000
commit1833bb272098edcc49e6008a1bbc7a3019410c74 (patch)
treee4430d417fa06ceab38b28482eb50c106e08f9d3 /testing/opensc
parent92782277b458facbdef6bc322ed6083853d809eb (diff)
downloadaports-1833bb272098edcc49e6008a1bbc7a3019410c74.tar.bz2
aports-1833bb272098edcc49e6008a1bbc7a3019410c74.tar.xz
testing/opensc: new aport
ref #2248
Diffstat (limited to 'testing/opensc')
-rw-r--r--testing/opensc/APKBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/opensc/APKBUILD b/testing/opensc/APKBUILD
new file mode 100644
index 0000000000..da11b5a375
--- /dev/null
+++ b/testing/opensc/APKBUILD
@@ -0,0 +1,60 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=opensc
+_realname=OpenSC
+pkgver=0.13.0
+pkgrel=0
+pkgdesc="Open source smart card tools and middleware"
+url="https://github.com/OpenSC/OpenSC"
+arch="all"
+license="LGPL"
+depends="pcsc-lite"
+depends_dev="pcsc-lite-dev openssl-dev readline-dev"
+makedepends="$depends_dev automake autoconf m4 gettext libtool"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="saveas-https://github.com/OpenSC/OpenSC/archive/${pkgver}.tar.gz/$_realname-${pkgver}.tar.gz"
+
+_builddir="$srcdir/$_realname-$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"
+ ./bootstrap || return 1
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-zlib \
+ --enable-readline \
+ --enable-openssl \
+ --enable-pcsc \
+ --enable-sm \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m644 etc/opensc.conf \
+ "$pkgdir/etc/opensc.conf" || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="92ed0041be8e5c53aa48c371b090b6cd OpenSC-0.13.0.tar.gz"
+sha256sums="0d2a265f58c310c9c3fe2753327fb294f3cb85873fe69d7ebab7c355a7adb1e3 OpenSC-0.13.0.tar.gz"
+sha512sums="5a00cbb048d1401afb5eed985ea2dce744c0a8b0bba245e4d9339c5a38b221a03feeea7404c7096e38d4324422dee9e323f01f8c2b698314d8b9681b87eeceb8 OpenSC-0.13.0.tar.gz"