blob: 55bc548063084804a5217020bdaab4c997643a3d (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
#!/bin/bash
# Maintainer: Ľubomír 'the-k' Kučera <lubomir.kucera.jr at gmail.com>
_pkgname=eidklient
pkgname="${_pkgname}-native"
pkgver=4.8
pkgrel=2
pkgdesc="Slovak eID Client - uses system-provided libraries, supports Wayland, …"
arch=('i686' 'x86_64')
url="https://www.slovensko.sk/"
license=('custom')
_upstream_arch=
[[ "$CARCH" == "x86_64" ]] && _upstream_arch="x86_64"
[[ "$CARCH" == "i686" ]] && _upstream_arch="i386"
_appimage="eID_klient-${_upstream_arch}.AppImage"
_url="https://web.archive.org/web/%dif_/https://eidas.minv.sk/downloadservice/eidklient/linux/eID_klient_%s.tar.gz"
source=(
eidklient
)
# shellcheck disable=SC2059
source_i686=(
"eID_klient_${pkgver}_i386.tar.gz::$(printf "${_url}" 20240217093941 i386)"
)
# shellcheck disable=SC2059
source_x86_64=(
"eID_klient_${pkgver}_x86_64.tar.gz::$(printf "${_url}" 20240217093919 x86_64)"
)
sha256sums=(
SKIP
)
sha256sums_i686=(
5501a742e3c04a7663b880e423b53caa21dc7fc79bb7603f2fe45762ac7bc886
)
sha256sums_x86_64=(
af12b06ab573477253eae1c273caba782f801850cdbda2bb25a3aeeeb635aa45
)
options=(
!debug
!strip
)
install=eidklient.install
makedepends=(
fuse2
)
provides=(
"${_pkgname}"
)
conflicts=(
"${_pkgname}"
)
: "${pkgname}"
: "${pkgver}"
: "${pkgrel}"
: "${pkgdesc}"
: "${arch[@]}"
: "${url}"
: "${license[@]}"
: "${source[@]}"
: "${source_i686[@]}"
: "${source_x86_64[@]}"
: "${sha256sums[@]}"
: "${sha256sums_i686[@]}"
: "${sha256sums_x86_64[@]}"
: "${options[@]}"
: "${install}"
: "${makedepends[@]}"
: "${provides[@]}"
: "${conflicts[@]}"
prepare() {
chmod +x "${_appimage}"
./"${_appimage}" --appimage-extract
}
package() {
depends=(
ccid
gcc-libs
glibc
pcsclite
qt5-base
qt5-svg
)
optdepends=('disig-web-signer: online certificates update support')
: "${depends[@]}"
: "${optdepends[@]}"
: "${pkgdir:?}"
: "${srcdir:?}"
# App
mkdir "${pkgdir}/opt"
cp -r "${srcdir}/squashfs-root" "${pkgdir}/opt/${_pkgname}"
# Custom wrapper
install -Dm755 "${srcdir}/eidklient" "${pkgdir}/usr/bin/eID_Client"
# Symlink executable
# It seems this is unnecessary (however it's done like this in the upstream package)
#ln -s /usr/bin/eID_Client "${pkgdir}/usr/bin/VirtualKeyboard"
install -dm755 "${pkgdir}/usr/lib/eID_klient"
ln -s /usr/bin/eID_Client "${pkgdir}/usr/lib/eID_klient/VirtualKeyboard"
for lib in "${srcdir}"/squashfs-root/lib/lib{CardAPI,botan,pkcs11_,crypto,ssl}*; do
ln -s "/opt/${_pkgname}/lib/${lib##*/}" "${pkgdir}/usr/lib/eID_klient/"
done
# Icons + desktop file
tar -x -C "${pkgdir}/usr" -f "${srcdir}/squashfs-root/share.tar"
}
|