aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opensc/APKBUILD
blob: a81c86fd3074c841f5cb14f4b00265dc907162e9 (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.14.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
}

md5sums="1ee31dc2e89860458fd984e0cac9795e  OpenSC-0.14.0.tar.gz"
sha256sums="ffe8bcc704f2ab9a05c6781bc815f00eaf75cba0a1bd21e3142b9194a7bed5c9  OpenSC-0.14.0.tar.gz"
sha512sums="3368f70e00c01ee2938891e86f89697f25340bd70bf9fdbc49a400a91026550940adf1ca0ece82cc58ee933ee57926022bfe1e31c666eb8976a2307f1c180e49  OpenSC-0.14.0.tar.gz"