blob: 909e98b5c0fef21a91b8d320588658437a0ab7f7 (
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
|
# Maintainer: cmuench / torben
# Default language is english Languages to choose from: en, de The script tries
# to infer the langauge from the LANG environment variable. If it starts with
# de, it will use german, otherwise english. To override this, export the
# environment variable ECODMS_LANG to select a non-default value. for example:
# export ECODMS_LANG=de
pkgname=ecodms-client
pkgver=24.02
pkgrel=1
pkgdesc="Document Management Software"
arch=('x86_64')
url="http://www.ecodms.de/index.php/de/"
license=('LicenseRef-ecodms')
depends=('apr' 'bash' 'fontconfig' 'freetype2' 'glib2' 'gtk3' 'libayatana-appindicator' 'libidn' 'libjpeg-turbo' 'libpng' 'libtiff' 'libwebp' 'libx11' 'openjpeg2' 'openssl' 'qt5-base' 'qt5-svg' 'qt5-webchannel' 'qt5-webengine' 'qt5-x11extras' 'sane' 'zlib')
optdepends=('gnome-shell-extension-appindicator')
options=(!strip !debug)
install=${pkgname}.install
source_x86_64=("ecodmsclient-24.02-1_amd64.deb::http://www.ecodms.de/ecodms_240264/noble/ecodmsclient-24.02-1_amd64.deb"
'LICENSE')
sha256sums_x86_64=(
'82d90e4adaf57f6ef3f514a83aae632bf39a95e61e38efaae6d3176b914735ce'
'0f8c7ffe3e43c20b8dbf01370c55013b0c1ba18fa8e9a9caa657f1dc98135cb3')
package() {
if [[ -n "${ECODMS_LANG}" ]]; then
_LANG="${ECODMS_LANG}"
elif [[ "${LANG,,}" == de* ]]; then
_LANG='de'
else
_LANG='en'
fi
tar -x --no-same-owner -f "${srcdir}/data.tar.gz" -C "${pkgdir}"
# Set client language
ln -sf language_${_LANG}.qm "${pkgdir}/opt/ecodms/ecodmsclient/language.qm"
install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|