blob: da11b5a375216d954f3873e895fab5425dff54c5 (
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
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"
|