blob: 315fb77a991e78a88187041506f50e0574eac91b (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: soloturn@gmail.com
# Contributor: Allison Smith <alyway@protonmail.com>
# Contributor: Anthony Wang <ta180m@gmail.com>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Max Bruckner <max@maxbruckner.de>
pkgname=terasology-latest-bin
pkgver=5.4.0
pkgrel=1
pkgdesc="Yet another high resolution game with blocks like Minecraft!"
arch=('x86_64')
license=('Apache-2.0')
url="https://terasology.org"
options=('!strip')
depends=(zlib java-runtime-openjdk)
makedepends=('unzip')
source=(
"terasology"
"terasology.desktop"
"terasology-omega-${pkgver}.zip::https://jenkins.terasology.io/job/Terasology/job/Omega/job/develop/lastSuccessfulBuild/artifact/distros/omega/build/distributions/TerasologyOmega.zip"
)
sha512sums=(
'SKIP'
'737953ab10027100b6bd03ca60a3f1cd4fff503c4c5a1689b3e12ef8df66a3e3347c99d498e48dccc3be8d00e9e37fcab56d5c97bbb81dd310ce757979aa0276'
'SKIP'
)
package() {
install -Dm 755 "${srcdir}/terasology" "$pkgdir/usr/bin/terasology"
install -Dm 644 "${srcdir}/terasology.desktop" "${pkgdir}/usr/share/applications/terasology.desktop"
#cleanup
rm "${srcdir}/terasology" "${srcdir}/terasology.desktop" "${srcdir}/terasology-omega-${pkgver}.zip"
#extract and install icons
unzip -u libs/engine-${pkgver}-SNAPSHOT.jar "org/terasology/engine/icons/*"
pushd org/terasology/engine/icons
for icon in *
do
size=${icon##*_} #gooey_sweet_XX.png -> XX.png
size=${size/.png/} #XX.png -> XX
install -Dm 644 "$icon" "${pkgdir}/usr/share/icons/${size}x${size}/apps/terasology.png"
done
install -Dm 644 "${pkgdir}/usr/share/icons/64x64/apps/terasology.png" "${pkgdir}/usr/share/pixmaps/terasology.png"
popd
rm -r org
#remove files/dirs for other operating systems and native libraries
#rm run_macosx.command Terasology.{x86,x64}.exe
rm Terasology.bat
rm -r natives/macosx
rm -r natives/windows
strip -s natives/linux/libbullet-linux-amd64.so
chmod a+w "$srcdir" # Terrible permissions hack to get the game to start
cp -ra "$srcdir" "${pkgdir}/usr/share/terasology"
}
|