aboutsummaryrefslogtreecommitdiffstats
path: root/community/ccid/APKBUILD
blob: 2f6fbc5ca20fad541efd4b0378e04580c37249da (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=ccid
pkgver=1.4.25
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/4187/ccid-1.4.25.tar.bz2"

builddir="$srcdir"/ccid-$pkgver

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="5ebb0a68564a384fd087023f52f1e35c  ccid-1.4.25.tar.bz2"
sha256sums="6b062b4ce0f04d6838d58e6faa255ba05222bd8ecb57a2d1116fdbe22f253609  ccid-1.4.25.tar.bz2"
sha512sums="97ca4009e5b4522e3db913ab147bd32bd24490c798d31be6614d3b337e0ab47e93a1ae0c1dfe1cf47a41145b3b37f5a10bbbafec980c180b407b511f18f9ac2c  ccid-1.4.25.tar.bz2"