blob: 355667684a9066ccb5cdcbb36803176adaadf5f2 (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=opensc
_realname=OpenSC
pkgver=0.17.0
pkgrel=3
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
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
bde4acf9bbb988f93a3f7f6d63ae451593174ed8e901028db3e69c29e02f4b9b409e8dc09aa9f73cae7c1fc71ab64b78d50f1f865967c309d151bcefa25d19f3 libressl-2.7.patch"
|