diff options
author | cubethethird | 2016-06-23 16:21:24 -0400 |
---|---|---|
committer | cubethethird | 2016-06-23 16:21:24 -0400 |
commit | a7d877aedcbc2bfe41ee6ab4f736cda3e089f918 (patch) | |
tree | bdbdac131e44a70967cf89a66a9f6e60f90e40e0 /PKGBUILD | |
parent | dc74b2937d8e5da366285673b4249036cad2de58 (diff) | |
download | aur-a7d877aedcbc2bfe41ee6ab4f736cda3e089f918.tar.gz |
Update to release version 4.1.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 17 insertions, 14 deletions
@@ -1,37 +1,40 @@ # Maintainer: Frederik "Freso" S. Olesen <archlinux@freso.dk> +# Contributor: CubeTheThird <cubethethird@gmail.com> pkgname=amidst -pkgver='3.7' -_jarver="${pkgver//_/-}" -_jarfile="${pkgname^^}-$_jarver.jar" +_version='4.1' +pkgver=${_version//_/-} +_jarver="v${_version}" +_jarfile="${pkgname}-${_jarver/./-}.jar" pkgrel=1 pkgdesc='Advanced Minecraft Interface and Data/Structure Tracking' arch=('any') license=('GPL3') -url='http://www.minecraftforum.net/topic/626786-' -depends=('java-runtime') +url='https://github.com/toolbox4minecraft/amidst' +depends=('java-runtime=8' 'sh') optdepends=('minecraft: the game itself') noextract=("$_jarfile") changelog=ChangeLog -source=("https://github.com/skiphs/AMIDST/releases/download/$_jarver/$_jarfile" - amidst.sh - amidst.desktop) -md5sums=('be52f1eaf644fca9c95e1fbe7e2ee5dc' - '783c4040c9736f96ce72e9997833a0bf' - '3c6900ac68e3175768322e684f9f1bcb') +source=("https://github.com/toolbox4minecraft/amidst/releases/download/$_jarver/$_jarfile" + amidst.desktop + icon.png) +md5sums=('1f3d6157e4d0339ad4f2d7996a0f88a6' + '3c6900ac68e3175768322e684f9f1bcb' + '0d90c979cbd12aa7d08d05f5f3299ce7') prepare() { cd "$srcdir" - # Extract icon - bsdcpio --extract --make-directories --insecure 'amidst/resources/icon.png' < "$_jarfile" + #Create shell script to launch the application + echo "#!/bin/sh" > amidst.sh + echo "java -noverify -jar /usr/share/java/$pkgname/AMIDST.jar" >> amidst.sh } package() { cd "$srcdir" install -vDm755 'amidst.sh' "$pkgdir/usr/bin/amidst" - install -vDm644 'amidst/resources/icon.png' "$pkgdir/usr/share/pixmaps/amidst.png" + install -vDm644 'icon.png' "$pkgdir/usr/share/pixmaps/amidst.png" install -vDm644 'amidst.desktop' "$pkgdir/usr/share/applications/amidst.desktop" install -vDm644 "$_jarfile" "$pkgdir/usr/share/java/$pkgname/AMIDST.jar" } |