blob: ee969d5e55a451abbb2311af4bbd18709dadcc21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Filip Parag <filip@parag.rs>
pkgname=bas-celik-cli-bin
pkgver=1.9.0
pkgrel=1
pkgdesc='Command line program for reading smart-card documents issued by the government of Serbia'
arch=(x86_64)
conflicts=(bas-celik)
provides=()
url='https://github.com/ubavic/bas-celik/'
license=(MIT)
depends=(ccid opensc)
source=("bas_celik_cli-${pkgver}_amd64::https://github.com/ubavic/bas-celik/releases/download/v${pkgver}/bas-celik-cli.linux.amd64")
sha256sums=('8aac434e2f0c7bc5904f45127c35c67ee3bab34891d563cfcfd8ff335347602c')
package()
{
cd "${srcdir}"
install -Dm 755 "bas_celik_cli-${pkgver}_amd64" "${pkgdir}/usr/bin/bas-celik-cli"
}
test_pcscd()
{
if ! systemctl is-active --quiet pcscd.service; then
echo 'This program requires pcscd service to be running'
fi
}
post_install()
{
test_pcscd
}
post_upgrade()
{
test_pcscd
}
|