blob: 3055f654cb89bbe950f2cccef4741b8a812d2323 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Nick Pilipenko <nick <at> k-2 <dot> tech>
pkgname=gdx-liftoff
pkgver=1.12.1.17
pkgrel=1
#epoch=1
pkgdesc="LibGDX project setup"
arch=('any')
url="https://libgdx.com"
license=('APACHE')
depends=('java-environment')
source=("$pkgname-$pkgver.tar.gz::https://github.com/libgdx/gdx-liftoff/archive/refs/tags/v$pkgver.tar.gz"
"gdx-liftoff"
"gdx-liftoff.desktop"
)
sha256sums=('eb74b2b7fda98ebb4352978e1a6cdb1d697fb5a513e5ad9cb18e3f3269d178cb'
'b646f91c9504b229c8a59bbb05a7fc410e5284f1e4cdbbf6fcb258eea8056a8b'
'3756dc0f908f8616d00cd077891a5e8c1b1f72e575227bcfc72db38e2e57c1b6')
jsrc=$pkgname-$pkgver
build() {
cd $jsrc
echo "Run build script in directory: `pwd`"
bash ./gradlew build
# Build script produce jar with doubling version in file name, rename
mv $srcdir/$jsrc/build/libs/$pkgname-$pkgver.jar $srcdir/$jsrc/build/libs/$pkgname.jar
}
package() {
jtarget=$srcdir/$jsrc/build/libs/$pkgname.jar
cd $srcdir
chmod +x gdx-liftoff
mkdir -p $pkgdir/usr/{share/java/$pkgname/,bin,share/pixmaps,share/applications}
install -Dm644 $jtarget $pkgdir/usr/share/java/$pkgname/
install -Dm644 $srcdir/$jsrc/raw/vectors/gdx-liftoff.svg $pkgdir/usr/share/pixmaps/gdx-liftoff.svg
install -Dm644 gdx-liftoff.desktop $pkgdir/usr/share/applications/
install -Dm755 gdx-liftoff $pkgdir/usr/bin
}
|