# Maintainer: Emiliano Vavassori pkgbase=it-cie-tools-bin pkgname=( 'it-cie-lib-bin' 'cieid-bin' ) pkgver=1.4.3.7 pkgrel=1 pkgdesc="CIE 3.0 PKCS11 Middleware for Italian Electronic Identity Card - Binaries from .deb" arch=('x86_64') license=('BSD') url="https://github.com/italia/cie-middleware-linux/" install= options=('!strip') depends=('ccid' 'opensc' 'pcsc-tools') ARCH='amd64' source=('https://github.com/italia/cie-middleware-linux/releases/download/1.4.3.7/CIE-Middleware-1.4.3-7.amd64.deb' 'cieid.desktop') sha256sums=('3f51958d02d9e66c8add0f55a7e3ad64bb086f0d676a9289a765d4a8cb660d26' '4309ca1d473f4b6117fefa8cc82b1f1c3a898bb66b2068e68863d1864bdbcdeb') build() { pkgsrc=$srcdir/$pkgbase-$pkgver mkdir $pkgsrc ar -xv CIE-Middleware-1.4.3-7.amd64.deb || return 1 tar -xvf data.tar.[xg]z -C $pkgsrc || return 1 } package_it-cie-lib-bin() { install=it-cie-lib-bin.install cd $srcdir/$pkgbase-$pkgver install -d $pkgdir/usr/lib install -o root -m0644 $srcdir/$pkgbase-$pkgver/usr/local/lib/libcie-pkcs11.so $pkgdir/usr/lib } package_cieid-bin() { install=cieid-bin.install cd $srcdir/$pkgbase-$pkgver install -d $pkgdir/opt cp -dr --no-preserve=ownership $srcdir/$pkgbase-$pkgver/usr/share/CIEID $pkgdir/opt/ install -m 0644 $srcdir/cieid.desktop $pkgdir/opt/CIEID/cieid.desktop }