aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opensc/APKBUILD
blob: c12929907645c581c3fd2fa7eceefa4078f4701c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=opensc
_realname=OpenSC
pkgver=0.15.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="$_realname-${pkgver}.tar.gz::https://github.com/OpenSC/OpenSC/archive/${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
}

md5sums="f266024e5a9630821ffa0ac14f72e369  OpenSC-0.15.0.tar.gz"
sha256sums="8f8f8cf52e0252334e4dfdccca829b876a3de6340deb772aa0bfe0c0cc10eaf5  OpenSC-0.15.0.tar.gz"
sha512sums="35bfab19ada7bf8f65eb2bb28788f732c831bf02faeb4e1520e1bdfe77754c35c1f1b5785c542bb924a327caa47de044a17a53570e4e7fad677330ab1e1bf5f1  OpenSC-0.15.0.tar.gz"