it-cie-tools-bin/PKGBUILD

43 lines
1.3 KiB
Bash

# Maintainer: Emiliano Vavassori <syntaxerrormmm@gmail.com>
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'
'd5d437518fa1695f2b11a2c5236b44a803a555437977aff551d5f2489c901d67')
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
}