it-cie-tools-bin/PKGBUILD

43 lines
1.2 KiB
Bash

# Maintainer: Emiliano Vavassori <syntaxerrormmm@gmail.com>
pkgbase=it-cie-tools-bin
pkgname=( 'it-cie-lib-bin' 'cieid-bin' )
pkgver=1.4.3.2
pkgrel=1
pkgdesc="Bit4ID Universal Middleware (Actalis/Oberthur/Idemia Smart Card driver)"
arch=('x86_64')
license=('unknown')
url="http://www.bit4id.com/"
install=
options=('!strip')
depends=('ccid' 'opensc' 'pcsc-tools')
ARCH='amd64'
md5sums=('bdd884713c61a64aba1c97eb5f4cc14f'
'79ab9ea336a1fbc1b590d58ffb1fc909')
source=('https://github.com/italia/cie-middleware-linux/releases/download/1.4.3.1/CIE-Middleware-1.4.3-2.amd64.deb'
'cieid.desktop')
build() {
pkgsrc=$srcdir/$pkgbase-$pkgver
mkdir $pkgsrc
ar -xv CIE-Middleware-1.4.3-2.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
}