Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rogueai/6d0666a7217223d9fcab06de27b3f4b2 to your computer and use it in GitHub Desktop.
Save rogueai/6d0666a7217223d9fcab06de27b3f4b2 to your computer and use it in GitHub Desktop.
cie-middleware-bin 1.4.3.7 PKGBUILD
# Maintainer: Juma7C9 <juri at dividebyzero dot it>
# Contributor: TesX <tesfabpel at gmail dot com>
# Contributor: rogueai <aur dot ax9kq at simplelogin dot com
pkgname=cie-middleware-bin
pkgver=1.4.3.7
pkgrel=1
pkgdesc="Middleware della CIE (Carta di Identità Elettronica) per Linux - Upstream Release"
arch=('x86_64')
url="https://developers.italia.it/it/cie"
license=('BSD')
depends=('gcc-libs' 'glibc' 'openssl' 'java-runtime' 'pcsclite')
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}" "${pkgname%-bin}-git")
install="${pkgname%-bin}.install"
_gh_dir="${pkgver}"
_gh_ver=$(sed 's/\(.*\)\./\1-/' <<< "${pkgver}")
_gh_file_base="CIE-Middleware-${_gh_ver}"
source=("https://github.com/italia/${pkgname%-bin}-linux/releases/download/${_gh_dir}/${_gh_file_base}.x86-64.tar.gz"
'LICENSE')
sha256sums=('b95c570002a1bb0d7341a223a2128302fc59fd71d770ad5e7fa53297984f4012'
'bf2723ca68a1f406557a3174f9195dbdc6171cbf8f7ad83f56546ac592a9ea8e')
package() {
cd "${srcdir}"
install -dm 755 ${pkgdir}/usr/share/CIEID
install -Dm 644 usr/share/CIEID/* ${pkgdir}/usr/share/CIEID/
install -Dm 755 usr/local/lib/libcie-pkcs11.so ${pkgdir}/usr/lib/libcie-pkcs11.so
install -Dm 644 usr/share/applications/cieid.desktop ${pkgdir}/usr/share/applications/cieid.desktop
install -Dm 644 ../LICENSE ${pkgdir}/usr/share/licenses/${pkgname%-bin}/LICENSE
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment