aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pcsc-lite/APKBUILD
blob: dca274e242d0228cf46d52040bf05fd634521ae1 (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
61
62
63
64
65
66
67
68
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=pcsc-lite
pkgver=1.8.8
pkgrel=0
pkgdesc="Middleware to access a smart card using SCard API (PC/SC)"
url="http://pcsclite.alioth.debian.org/pcsclite.html"
arch="all"
license="Custom"
depends=""
depends_dev="udev-dev"
makedepends="$depends_dev perl"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://alioth.debian.org/frs/download.php/file/3862/pcsc-lite-${pkgver}.tar.bz2
	pcscd.initd"

_builddir="$srcdir"/pcsc-lite-$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"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-libusb \
		--enable-libudev \
		--disable-maintainer-mode \
		--disable-silent-rules \
		--without-systemdsystemunitdir \
		--enable-ipcdir=/run/pcscd \
		--enable-usbdropdir=/usr/lib/pcsc/drivers \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
        install -D -m755 "$srcdir"/pcscd.initd \
		"$pkgdir"/etc/init.d/pcscd || return 1
	mkdir -p "$pkgdir"/usr/lib/pcsc/drivers
	rm -f "$pkgdir"/usr/lib/*.la
}

libs() {
	pkgdesc="Middleware to access a smart card using SCard API (PC/SC) (libraries)"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib \
		"$subpkgdir"/usr || return 1
}

md5sums="069dc875a2ae2d85a2ebceac73252c0a  pcsc-lite-1.8.8.tar.bz2
1d891cc0401773e5487269df06b881c6  pcscd.initd"
sha256sums="fe66354a7e738d3ef8b4e572c7e447b85894da9262381fbf004e8abcc12885e7  pcsc-lite-1.8.8.tar.bz2
e605bd74a16a978144346265aca4c48f709cf7c3fc1043930cdf591cba4b8620  pcscd.initd"
sha512sums="02b0ce81fb1f3a0358967825499ff3687bd7375ac6b0ff892f23c0980864046330a3db6b1296aa7a4baa135f94a8b85112518a2584de3b522bd2b8dc58894658  pcsc-lite-1.8.8.tar.bz2
3b70cdd1b07d1a118a5b808f3d2ab3d129c16c388d54d19df82886c2a1de947be7eb1e0da100395445681e68402e74d7a4c60bd070061b4495edd0143e27e394  pcscd.initd"