aboutsummaryrefslogtreecommitdiffstats
path: root/community/opensc/APKBUILD
blob: c1909358e97384cb1a1f515e3336dde3677e82c5 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=opensc
_realname=OpenSC
pkgver=0.17.0
pkgrel=4
pkgdesc="Open source smart card tools and middleware"
url="https://github.com/OpenSC/OpenSC"
arch="all"
license="LGPL"
depends="pcsc-lite"
depends_dev="zlib-dev pcsc-lite-dev libressl-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
		add-ecc-curves.patch
		libressl-2.7.patch"

builddir="$srcdir/$_realname-$pkgver"

build() {
	cd "$builddir"
	./bootstrap
	./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
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -D -m644 etc/opensc.conf \
		"$pkgdir/etc/opensc.conf"
}

sha512sums="1576a9ca58e80c95b23bf53fba03b14b174361c054a3e836bcfbe96765308a2ba807b819e0d617707fdef32ce2e3ae1ab74766bc1e82eeaf218d48a18ec8e67f  OpenSC-0.17.0.tar.gz
c78cd58f58eca6db17a093157c20b8eb3457fffc04e3849c7a3cf7f476b84c49686c7815dafbf82df7f48aebc4169b2ac0621d47f41f0157fec3af3d48d51cfb  add-ecc-curves.patch
bde4acf9bbb988f93a3f7f6d63ae451593174ed8e901028db3e69c29e02f4b9b409e8dc09aa9f73cae7c1fc71ab64b78d50f1f865967c309d151bcefa25d19f3  libressl-2.7.patch"