blob: e019a75be64a05fae662f9bb36ddfc2db7052122 (
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
|
# Maintainer: André Schamschurko <marcrosssaberan[AT]gmail[DOT]com>
# Contributer: Andreas Born <futur[DOT]andy[AT]googlemail[DOT]com>
pkgname=lrz-syncshare
pkgver=21.1.100
pkgrel=1
pkgdesc="Sync client for the LRZ Sync+Share service"
url='https://syncandshare.lrz.de/'
arch=('any')
license=('custom')
depends=('desktop-file-utils' 'hicolor-icon-theme' 'java-runtime>=15' 'xdg-utils' 'archlinux-java-run')
source=("LRZ_Sync_Share_${pkgver}_Linux.tar.gz::https://syncandshare.lrz.de/client_deployment/LRZ_Sync_Share_Latest_Linux.tar.gz")
sha256sums=('31eb499fe97c8cb7d90f5046d351696f845cdb04e8495311a37e07dc708262b4')
pkgver() {
cat "${srcdir}/LRZ_Sync_Share/VERSION" | sed -e 's/\s*$//'
}
prepare() {
cd "${srcdir}/LRZ_Sync_Share"
sed -e "s;^CLIENT_INSTALL=.*\$;CLIENT_INSTALL=/usr/share/${pkgname};" \
-e 's;^RUN_CMD="$CLIENT_INSTALL/jre/bin/java ;RUN_CMD="/usr/bin/archlinux-java-run -a 15 -- ;' \
-i LRZ_Sync_Share-Client.sh
sed -e "s;^Icon=.*;Icon=${pkgname};" \
-e "s;^Exec=.*;Exec=${pkgname};" -i install-files/LRZ_Sync_Share.desktop
}
package() {
cd "${srcdir}/LRZ_Sync_Share"
install -Dm755 LRZ_Sync_Share-Client.sh "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 LRZ_Sync_Share.jar -t "${pkgdir}/usr/share/${pkgname}/"
install -Dm644 install-files/LRZ_Sync_Share.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 install-files/LRZ_Sync_Share.png "${pkgdir}/usr/share/icons/hicolor/128x128/apps/${pkgname}.png"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|