summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f8b2d95774906783bf87a8a4f733b456189d0e0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#Maintainer: Wilson E. Alvarez <wilson.e.alvarez1@gmail.com>
pkgname="hiero"
pkgver=5
pkgrel=2
pkgdesc="Bitmap Font Tool that saves in Angel Code font format"
arch=('any')
url="https://github.com/libgdx/libgdx/tree/master/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero"
license=('Apache')
depends=('jre8-openjdk')
source=("runnable-${pkgname}.jar::https://libgdx-nightlies.s3.eu-central-1.amazonaws.com/libgdx-runnables/runnable-${pkgname}.jar")
noextract=("runnable-${pkgname}.jar")
sha256sums=('70c6d7a97ab7ed259a2a7e57c8cdca78e9ac3f5c684d7d4be6df14066eb55554')

prepare() {
	printf "#!/bin/sh\nexec /usr/lib/jvm/java-8-openjdk/jre/bin/java -jar '/usr/share/java/${pkgname}/${pkgname}.jar'\n" > ${pkgname}.sh
}

package() {
	install -Dm644 runnable-${pkgname}.jar $pkgdir/usr/share/java/${pkgname}/${pkgname}.jar
	install -Dm644 ${pkgname}.sh $pkgdir/usr/bin/${pkgname}
	chmod +x $pkgdir/usr/bin/${pkgname}
}