summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVresod2020-10-07 12:48:06 -0400
committerVresod2020-10-07 12:48:06 -0400
commitdb9a44fa469d08887f7836cb4923c1146a311aac (patch)
tree26733ace62023590c2da0b71835c0cd577d45829
parentc75f8fae38dc2ed82986ff022c74945f0a49c66d (diff)
downloadaur-db9a44fa469d08887f7836cb4923c1146a311aac.tar.gz
use tabs and conform better to java packaging guidelines
-rw-r--r--PKGBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 313650a72ce..a7855b5e33c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,19 +17,20 @@ source=("https://github.com/Vresod/Among-Us-Editor/releases/download/$pkgver/$_j
sha256sums=("efdb4c0bead17da3332d4f98655c22d3e0626844f2782700d713ada7fe764d98" "1fc76f358a4996594740da38546946040c98e652e7f2a9644fe16bd2d25ddc43" "9bc31e9bb127d780af39aad0a98dd9c98d98b9a0d00f335daa3d123a9f108de1")
build() {
- cd "$srcdir"
+ cd "$srcdir"
- #Create shell script to launch the application
- echo "#!/bin/sh" > AUE.sh
- echo "_JAVA_AWT_WM_NONREPARENTING=1 java -noverify -jar /usr/share/java/$pkgname/AUE.jar" >> AUE.sh
+ #Create shell script to launch the application
+ #
+ echo "#!/bin/sh" > AUE.sh
+ echo "_JAVA_AWT_WM_NONREPARENTING=1 exec /usr/bin/java -jar '/usr/share/java/$pkgname/AUE.jar' '$@'" >> AUE.sh
}
package() {
- cd "$srcdir"
+ cd "$srcdir"
- install -Dm755 'AUE.sh' "$pkgdir/usr/bin/among-us-editor"
- install -Dm644 'AUE.desktop' "$pkgdir/usr/share/applications/AUE.desktop"
- install -Dm644 "$_jarfile" "$pkgdir/usr/share/java/$pkgname/AUE.jar"
+ install -Dm755 'AUE.sh' "$pkgdir/usr/bin/among-us-editor"
+ install -Dm644 'AUE.desktop' "$pkgdir/usr/share/applications/AUE.desktop"
+ install -Dm644 "$_jarfile" "$pkgdir/usr/share/java/$pkgname/AUE.jar"
- install -Dm644 "icon.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps/AUE.png"
+ install -Dm644 "icon.png" "$pkgdir/usr/share/icons/hicolor/64x64/apps/AUE.png"
}