summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYrz02018-03-01 19:43:03 +0100
committerYrz02018-03-01 19:43:58 +0100
commit27ba495e0d5a0d322fea0c5a0b2dc102de2e3b10 (patch)
tree906c494b75b251eb1313897f8a336fd252264d24
parent9579232a86f3f853d72c4c0d568dee3bb632c315 (diff)
downloadaur-hotsuploader.tar.gz
adapted PKGBUILD to Arch Linux Java Package Guidelines
compare https://wiki.archlinux.org/index.php/Java_package_guidelines
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD14
-rwxr-xr-xhotsuploader2
-rwxr-xr-xhotsuploader.sh2
4 files changed, 12 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a735e4e7cc3..e957a46c445 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,18 @@
pkgbase = hotsuploader
pkgdesc = Replay uploader for Heroes of the Storm
pkgver = 2.1.5
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/eivindveg/HotSUploader
arch = any
license = apache
makedepends = jdk8-openjdk
makedepends = java-openjfx
makedepends = maven
- depends = bash
depends = java-environment
- noextract = hotsuploader
source = hotsuploader-2.1.5.tar.gz::https://github.com/eivindveg/HotSUploader/archive/v2.1.5.tar.gz
- source = hotsuploader
+ source = hotsuploader.sh
sha256sums = 72a6c3cae96d2c259099daa957a8cb6ff6e41bf9541941d4108389ec3ccf0e64
- sha256sums = 5e7f5a812f482b53771f63976603c694319eba9520e82f9e0797bc8b4db897b6
+ sha256sums = 416e6d5596562fc2e0bd2ab32f94b78fa8bc50ae7fdb2ffba021cf3f61c44389
pkgname = hotsuploader
diff --git a/PKGBUILD b/PKGBUILD
index 0a6d0c283b8..a14544c4f5a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,17 +2,17 @@
# Contributor: heinrich5991
pkgname=hotsuploader
pkgver=2.1.5
-pkgrel=1
+pkgrel=2
pkgdesc="Replay uploader for Heroes of the Storm"
arch=('any')
url="https://github.com/eivindveg/HotSUploader"
license=('apache')
-depends=('bash' 'java-environment')
+depends=('java-environment')
makedepends=('jdk8-openjdk' 'java-openjfx' 'maven')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/eivindveg/HotSUploader/archive/v$pkgver.tar.gz" "hotsuploader")
-noextract=("hotsuploader")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/eivindveg/HotSUploader/archive/v$pkgver.tar.gz"
+ "hotsuploader.sh")
sha256sums=('72a6c3cae96d2c259099daa957a8cb6ff6e41bf9541941d4108389ec3ccf0e64'
- '5e7f5a812f482b53771f63976603c694319eba9520e82f9e0797bc8b4db897b6')
+ '416e6d5596562fc2e0bd2ab32f94b78fa8bc50ae7fdb2ffba021cf3f61c44389')
build() {
cd HotSUploader-"$pkgver"
@@ -21,6 +21,6 @@ build() {
package() {
cd HotSUploader-"$pkgver"
- install -Dm644 "target/HotS Replay Uploader-boot.jar" "$pkgdir"/usr/lib/hotsuploader.jar
- install -Dm755 ../hotsuploader "$pkgdir"/usr/bin/hotsuploader
+ install -Dm644 "target/HotS Replay Uploader-boot.jar" "$pkgdir"/usr/share/java/hotsuploader/hotsuploader.jar
+ install -Dm755 "$srcdir"/hotsuploader.sh "$pkgdir"/usr/bin/hotsuploader
}
diff --git a/hotsuploader b/hotsuploader
deleted file mode 100755
index b7b9ca65cae..00000000000
--- a/hotsuploader
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-java -jar /usr/lib/hotsuploader.jar
diff --git a/hotsuploader.sh b/hotsuploader.sh
new file mode 100755
index 00000000000..f88c3752135
--- /dev/null
+++ b/hotsuploader.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/java -jar '/usr/share/java/hotsuploader/hotsuploader.jar' "$@"