summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce706452190b02d32c722749fdf140c4ce0de37e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#Maintainer: Wilson E. Alvarez <wilson.e.alvarez1@gmail.com>
#Contributor: Andrew Bueide <abueide@protonmail.com>
pkgname="gdx-texture-packer-gui"
pkgver=4.13.0
pkgrel=1
pkgdesc="A command line and GUI for packing textures"
arch=('any')
url="https://github.com/crashinvaders/gdx-texture-packer-gui"
license=('Apache')
depends=('java-runtime' 'unzip')
source=("https://github.com/crashinvaders/gdx-texture-packer-gui/archive/refs/tags/${pkgver}.zip")
sha256sums=('3c6d6ebaa12a28cce4d7aa5b500fe2cd900018bac7523e7d7c483dc090ab0981')

build() {
	printf "#!/bin/sh\nexec /usr/bin/java -jar '/usr/share/java/${pkgname}/${pkgname}.jar' \"\$@\"\n" >${pkgname}.sh
	cd ${srcdir}/${pkgname}-${pkgver}
	JAVA_HOME=/usr/lib/jvm/java-8-openjdk/ ./gradlew distRelease
}

package() {
	install -Dm644 "${srcdir}/${pkgname}-${pkgver}/distribution/output/gdx-texture-packer.jar" "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
	install -Dm755 "${pkgname}.sh" "$pkgdir/usr/bin/${pkgname}"
}