diff options
author | wilga | 2016-02-26 11:54:56 +0100 |
---|---|---|
committer | wilga | 2016-02-26 11:54:56 +0100 |
commit | ae40ba5bc06c2ca79e45896c4878f2354ccd82ba (patch) | |
tree | 3c7b427c688fc28f977547141f74034bb5a27e8c | |
download | aur-ae40ba5bc06c2ca79e45896c4878f2354ccd82ba.tar.gz |
initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | bwsyncandshare-10.4.321.patch | 21 |
4 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2d0ee4f830a3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by makepkg 5.0.0 +# Fri Feb 26 10:43:31 UTC 2016 +pkgbase = bwsyncandshare + pkgdesc = file sync and share client + pkgver = 10.4.321 + pkgrel = 1 + url = https://bwsyncandshare.kit.edu + arch = any + license = custom + depends = jre + depends = gtk2 + noextract = bwSyncAndShare_v10.4.321_Linux.tar.gz + source = http://download.bwsyncandshare.kit.edu/clients/bwSyncAndShare_v10.4.321_Linux.tar.gz + source = bwsyncandshare-10.4.321.patch + sha256sums = 1a36c94563110dcfc4dc76dc2c3702e2e62ac605b59e343e12aff4a76059d8af + sha256sums = 3e0817014cf6b34e63a7ea02186190efdd392be08e5e07510a90622822c893cf + +pkgname = bwsyncandshare + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..9120f2cb922c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.xz +*.tar.gz +/pkg/ +/src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c506da79c02c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: wilga <wilga at cat3 dot de> +pkgname=bwsyncandshare +pkgver=10.4.321 +pkgrel=1 +pkgdesc="file sync and share client" +arch=('any') +url="https://bwsyncandshare.kit.edu" +license=('custom') + +# the upstream package includes a bundled Oracle jre8 but we install it as a dependency instead +depends=('jre' 'gtk2') + +# curl cannot use https since this server doesn't send intermediate CA certs so we must use http. +# no security issue since the sha256sum we check against was computed from a https-downloaded copy +_tarball="bwSyncAndShare_v${pkgver}_Linux.tar.gz" +source=("http://download.bwsyncandshare.kit.edu/clients/$_tarball" + "$pkgname-$pkgver.patch") +noextract=("$_tarball") +sha256sums=('1a36c94563110dcfc4dc76dc2c3702e2e62ac605b59e343e12aff4a76059d8af' + '3e0817014cf6b34e63a7ea02186190efdd392be08e5e07510a90622822c893cf') + +prepare() { + tar xvzf $_tarball --exclude="bwSyncAndShare/jre" # remove bundled Oracle jre + cd "bwSyncAndShare" + patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" +} + + +package() { + cd "bwSyncAndShare" + install -D -m 644 -t $pkgdir/usr/share/bwSyncAndShare/ bwSyncAndShare.jar + install -D -m 755 -t $pkgdir/usr/share/bwSyncAndShare/ bwSyncAndShare-Client.sh + install -D -m 644 -t $pkgdir/usr/share/icons/hicolor/128x128/apps/ install-files/bwSyncAndShare.png + install -D -m 644 -t $pkgdir/usr/share/applications/ install-files/bwSyncAndShare.desktop + install -D -m 644 -t $pkgdir/usr/share/doc/bwSyncAndShare/ LICENSE README VERSION + install -D -m 644 -t $pkgdir/usr/share/licenses/$pkgname/ LICENSE +} diff --git a/bwsyncandshare-10.4.321.patch b/bwsyncandshare-10.4.321.patch new file mode 100644 index 000000000000..1bbe69debac2 --- /dev/null +++ b/bwsyncandshare-10.4.321.patch @@ -0,0 +1,21 @@ +diff -aur bwSyncAndShare.pristine/bwSyncAndShare-Client.sh bwSyncAndShare/bwSyncAndShare-Client.sh +--- bwSyncAndShare.pristine/bwSyncAndShare-Client.sh 2015-12-01 16:30:53.000000000 +0100 ++++ bwSyncAndShare/bwSyncAndShare-Client.sh 2016-02-25 22:18:23.317595574 +0100 +@@ -8,7 +8,7 @@ + # CLIENT_INSTALL needs to point to the directory + # where the .jar file is located. + # +-CLIENT_INSTALL=. ++CLIENT_INSTALL=/usr/share/bwSyncAndShare + + # + # CLIENT_HOME sets the location where the client +@@ -104,7 +104,7 @@ + # + # Set command line to invoke program start + # +-RUN_CMD="$CLIENT_INSTALL/jre/bin/java $JAVA_MEM -Duser.home=$CLIENT_HOME -cp $CP de.dal33t.Start" ++RUN_CMD="/usr/lib/jvm/java-8-jre/jre/bin/java $JAVA_MEM -Duser.home=$CLIENT_HOME -cp $CP de.dal33t.Start" + + # + # Silent mode |