Created
January 9, 2019 16:20
-
-
Save mqus/059020041fea08147a2ae80ca130bf47 to your computer and use it in GitHub Desktop.
amidst PKGBUILD for beta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Frederik "Freso" S. Olesen <archlinux@freso.dk> | |
# Contributor: CubeTheThird <cubethethird@gmail.com> | |
pkgname=amidst | |
_version='4.3-beta5' | |
pkgver=${_version/-/_} | |
_jarver="v${_version}" | |
_jarfile="${pkgname}-${_jarver/./-}.jar" | |
pkgrel=1 | |
pkgdesc='Advanced Minecraft Interface and Data/Structure Tracking' | |
arch=('any') | |
license=('GPL3') | |
url='https://github.com/toolbox4minecraft/amidst' | |
depends=('java-runtime=8' 'sh') | |
optdepends=('minecraft: the game itself') | |
noextract=("$_jarfile") | |
changelog=ChangeLog | |
source=("https://github.com/toolbox4minecraft/amidst/releases/download/$_jarver/$_jarfile" | |
amidst.desktop | |
icon.png) | |
md5sums=('6fc0a10082ab10544162d6fa72192f94' | |
'3c6900ac68e3175768322e684f9f1bcb' | |
'0d90c979cbd12aa7d08d05f5f3299ce7') | |
prepare() { | |
cd "$srcdir" | |
#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 '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" | |
} | |
# vim:set ts=4 sw=4 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment