summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5e934c4fdf7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Andreas Born <futur[DOT]andy[AT]goooglemail[DOT]com>
+# Contributor: Andreas Born <futur[DOT]andy[AT]goooglemail[DOT]com>
+pkgname=lrz-syncshare
+pkgver=10.4.321
+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-jre=8' 'xdg-utils')
+install=lrz-syncshare.install
+source=("https://syncandshare.lrz.de/client_deployment/LRZ_Sync_Share_Latest_Linux.tar.gz")
+md5sums=('b2082917476ab62ac7030f9e8116dbf5')
+
+pkgver() {
+ pkgver="$(cat "${srcdir}/LRZ_Sync_Share/VERSION")"
+}
+
+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/lib/jvm/java-8-jre/jre/bin/java ;' -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"
+}
+