aboutsummaryrefslogtreecommitdiffstats
path: root/community/acsccid/APKBUILD
blob: 54c928f6d89b8ec725f08707069877bb20a21dd9 (plain) (blame)
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
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=acsccid
pkgver=1.1.8
pkgrel=1
pkgdesc="PCSC driver for ACS CCID smart card reader"
url="https://github.com/acshk/acsccid"
arch="all"
license="LGPL-2.1-or-later"
depends="pcsc-lite"
makedepends="pcsc-lite-dev libusb-dev perl flex"
options="!check" # upstream does not provide tests
subpackages="$pkgname-udev::noarch"
source="https://downloads.sourceforge.net/acsccid/acsccid-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--target=$CTARGET \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

udev() {
	depends=""
	pkgdesc="$pkgdesc (udev rules)"
	install_if="$pkgname=$pkgver-r$pkgrel udev"

	cd "$builddir"
	install -Dm644 src/92_pcscd_acsccid.rules -t "$subpkgdir"/usr/lib/udev/rules.d
}

sha512sums="1a9bbfcda071b19693df5cc3e75216778ba4abeffe421ec6a308af77f382229f0d980b5ae0c63022833018413ea9e69f5ae1e12fb720a2dc400ca081772f8bfb  acsccid-1.1.8.tar.bz2"