diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..04d9e4758a4b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +#Maintainer: Andrew Bueide <abueide@protonmail.com> +pkgname="gdx-texture-packer-gui" +pkgver=4.5.0 +pkgrel=1 +pkgdesc="A gui for the command line gdx-texturepacker" +arch=('x86_64') +url="https://github.com/crashinvaders/gdx-texture-packer-gui" +license=('Apache') +depends=('java-runtime' 'unzip') + +md5sums=('31b659de384c4e2b17b986d13c370778') + +source=("https://github.com/crashinvaders/gdx-texture-packer-gui/releases/download/4.5.0/gdx-texturepacker-${pkgver}.zip") + +prepare() { + unzip -o gdx-texturepacker-${pkgver}.zip + printf "#\!/bin/sh\nexec /usr/bin/java -jar '/usr/share/java/${pkgname}/${pkgname}.jar' \"\$@\"" > ${pkgname}.sh +} + +package() { + install -Dm644 gdx-texturepacker.jar $pkgdir/usr/share/java/${pkgname}/${pkgname}.jar + install -Dm644 ${pkgname}.sh $pkgdir/usr/bin/${pkgname} + chmod +x $pkgdir/usr/bin/${pkgname} +} |