blob: 8f552b1952ad4a3b101fd9cf91850b6ec674e585 (
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
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=open-ecard-app-bin
_pkgname=Open-eCard-App
pkgver=2.3.7
pkgrel=1
pkgdesc="Client side implementation of the eCard-API-Framework (BSI TR-03112) and related international standards, such as ISO/IEC 24727.(Prebuilt version)"
arch=('x86_64')
url="http://www.openecard.org/"
_ghurl="https://github.com/ecsec/open-ecard"
license=(
"Apache-2.0"
"LicenseRef-BouncyCastle"
"GPL-3.0-only"
"GPL-2.0-only"
"LGPL-3.0-only"
"MIT"
)
provides=("${pkgname%-app-bin}=${pkgver}")
conflicts=(
"${pkgname%-bin}"
"openecardapp"
)
depends=(
'java-runtime'
'alsa-lib'
'libjpeg6-turbo'
'pcsclite'
'libxtst'
'libxrender'
'libx11'
)
options=(
'!emptydirs'
)
source=(
"${pkgname%-bin}-${pkgver}.rpm::${_ghurl}/releases/download/v${pkgver}/${pkgname%-bin}-${pkgver}-1.${CARCH}.rpm"
"License-BouncyCastle-${pkgver}::https://raw.githubusercontent.com/ecsec/open-ecard/v${pkgver}/LICENSE.BouncyCastle"
"License-MIT-${pkgver}::https://raw.githubusercontent.com/ecsec/open-ecard/v${pkgver}/LICENSE.MIT"
"${pkgname%-bin}.sh"
)
sha256sums=('66cb91cfee4eae6caa2b0256649f938847d605727750f4709c1832650b53acba'
'8137d0fbe30981aa23ee0507994b5af3fb8ead0336c3c1a1bb637be4c01e86e9'
'21366ef752c0c7fbf91c46ff163212d3991c6f31cf5edd216467966c50783e7e'
'b8f91b2c58c9a52fdd956fbbf13e82ac8f404b3cce08cb1dae40f50634ec5af4')
prepare() {
sed -e "
s/@appname@/${pkgname%-bin}/
s/@runname@/${_pkgname}/
" -i "${srcdir}/${pkgname%-bin}.sh"
sed -e "
s/\/opt\/${pkgname%-bin}\/bin\/${_pkgname}/${pkgname%-bin}/
s/\/opt\/${pkgname%-bin}\/lib\/${_pkgname}.png/${pkgname%-bin}/
" -i "${srcdir}/opt/${pkgname%-bin}/lib/${pkgname%-bin}-${_pkgname}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/usr/lib"
cp -Pr --no-preserve=ownership "${srcdir}/opt/${pkgname%-bin}" "${pkgdir}/usr/lib"
install -Dm644 "${srcdir}/opt/${pkgname%-bin}/lib/${pkgname%-bin}-${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/opt/${pkgname%-bin}/lib/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/License-BouncyCastle-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/License-BouncyCastle"
install -Dm644 "${srcdir}/License-MIT-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/License-MIT"
}
|