2022-02-01 22:27:21 +01:00
|
|
|
# Maintainer: Emiliano Vavassori <syntaxerrormmm@gmail.com>
|
|
|
|
|
|
|
|
pkgbase=bit4id-tools-bin
|
|
|
|
pkgname=( 'bit4id-xpki-bin' 'bit4id-pinmanager-bin' )
|
2022-02-01 22:44:44 +01:00
|
|
|
pkgver=1.4.10.647
|
2022-02-01 22:27:21 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Bit4ID Universal Middleware (Actalis/Oberthur/Idemia Smart Card driver)"
|
2022-02-01 22:44:44 +01:00
|
|
|
arch=('i686' 'x86_64')
|
2022-02-01 22:27:21 +01:00
|
|
|
license=('unknown')
|
|
|
|
url="http://www.bit4id.com/"
|
|
|
|
install=
|
|
|
|
options=('!strip')
|
|
|
|
depends=('ccid' 'opensc' 'pcsc-tools')
|
|
|
|
|
2022-02-01 22:44:44 +01:00
|
|
|
ARCH='i686'
|
|
|
|
#md5sums=('1a65703ee7298e21842041a722ee4831')
|
|
|
|
md5sums=('4b9896c1e391fbae41b6826fccf25c7d')
|
2022-02-01 22:27:21 +01:00
|
|
|
|
2022-02-01 22:44:44 +01:00
|
|
|
source=('https://swdownload1.agenziaentrate.gov.it/pub/sanita/libbit4xpki-idemia-i386.1.4.10-647.deb')
|
2022-02-01 22:27:21 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
pkgsrc=$srcdir/$pkgbase-$pkgver
|
|
|
|
mkdir $pkgsrc
|
2022-02-01 22:44:44 +01:00
|
|
|
ar -xv libbit4xpki-idemia-i386.1.4.10-647.deb || return 1
|
2022-02-01 22:27:21 +01:00
|
|
|
tar -xvf data.tar.[xg]z -C $pkgsrc || return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
package_bit4id-xpki-bin() {
|
|
|
|
install=bit4id-xpki-bin.install
|
|
|
|
cd $srcdir/$pkgbase-$pkgver
|
|
|
|
install -d $pkgdir/usr/lib
|
|
|
|
cp -dr --no-preserve=ownership $srcdir/$pkgbase-$pkgver/usr/lib/bit4id $pkgdir/usr/lib/
|
|
|
|
find $pkgdir/usr/lib -type f -exec chmod 0644 {} \+
|
|
|
|
}
|
|
|
|
|
|
|
|
package_bit4id-pinmanager-bin() {
|
|
|
|
install=bit4id-pinmanager-bin.install
|
|
|
|
cd $srcdir/$pkgbase-$pkgver
|
|
|
|
install -d $pkgdir/opt
|
|
|
|
cp -dr --no-preserve=ownership $srcdir/$pkgbase-$pkgver/usr/share/bit4id/x/pinmanager $pkgdir/opt/
|
|
|
|
install -m 0644 $srcdir/$pkgbase-$pkgver/usr/share/bit4id/x/bit4pin.desktop $pkgdir/opt/pinmanager/bit4pin.desktop
|
|
|
|
sed -ie 's:/usr/share/bit4id/x:/opt/pinmanager:g' $pkgdir/opt/pinmanager/bit4pin.desktop
|
|
|
|
install -m 0644 $srcdir/$pkgbase-$pkgver/usr/share/bit4id/x/bit4pin.png $pkgdir/opt/pinmanager/bit4pin.png
|
|
|
|
|
|
|
|
cat>$pkgdir/opt/pinmanager/bit4pin.sh <<EOF
|
|
|
|
#!/bin/sh
|
|
|
|
cd "/opt/pinmanager/bin"
|
|
|
|
./python.exe -m crtmgr.gui
|
|
|
|
EOF
|
|
|
|
chmod a+x $pkgdir/opt/pinmanager/bit4pin.sh
|
|
|
|
|
|
|
|
}
|