aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ccid/APKBUILD
blob: a601e197da1ab65f9890d5be8f8a28a2572361ba (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer:
pkgname=ccid
pkgver=1.4.17
pkgrel=0
pkgdesc="USB CCID/ICCD SmartCard reader driver"
url="https://pcsclite.alioth.debian.org/ccid.html"
arch="all"
license="LGPL2.1+"
depends="pcsc-lite"
makedepends="perl libusb-dev pcsc-lite-dev"
install=""
subpackages=""
source="https://alioth.debian.org/frs/download.php/file/4091/ccid-$pkgver.tar.bz2"

_builddir="$srcdir"/ccid-$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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

	mkdir -p "$pkgdir"/etc/udev/rules.d/ || return 1
	cp src/92_pcscd_ccid.rules "$pkgdir"/etc/udev/rules.d/ || return 1
}

md5sums="a227a20a0dd034cd4bb7400806a0a2d0  ccid-1.4.17.tar.bz2"
sha256sums="ccdab8a9bc1ad288242d5f9ef399405e9cb96fb09caadb43e3649cbaba84c451  ccid-1.4.17.tar.bz2"
sha512sums="65dd0020b7b586eb6e0db5953561e8dc578daee522bf472542f05355293171a9635ea64447ecf465bc65b13a5fdeb7d223e15b53ca7045b880ba8bde859bd4eb  ccid-1.4.17.tar.bz2"