diff options
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 48 | ||||
-rw-r--r-- | rendering.cfg | 3 | ||||
-rwxr-xr-x | terasology | 4 |
5 files changed, 34 insertions, 44 deletions
@@ -1,28 +1,20 @@ pkgbase = terasology pkgdesc = Yet another high resolution game with blocks like Minecraft! - pkgver = 2.1.0alpha11 + pkgver = 5.3.0alpha23 pkgrel = 1 epoch = 1 - url = http://terasology.org + url = https://terasology.org arch = x86_64 - arch = i686 license = Apache makedepends = unzip - depends = java-environment-openjdk=8 - depends = openal - depends = libxcursor - depends = libxxf86vm - depends = libxrandr - depends = lwjgl2 + depends = zlib + depends = java-runtime-openjdk=11 options = !strip source = terasology source = terasology.desktop - source = rendering.cfg - source = TerasologyOmega2.1.0alpha11.zip::https://github.com/MovingBlocks/Terasology/releases/download/v2.1.0/TerasologyOmega.zip - sha512sums = f94c1ac3d85e4fb91cc47056eeec3648d02be9090252401acb740af8c0580623c7ee57470d9e7317d6b577d613e317b5c16ec014f232ec68bc755e0eba7a975e + source = TerasologyOmega5.3.0alpha23.zip::https://github.com/MovingBlocks/Terasology/releases/download/v5.3.0/TerasologyOmega.zip + sha512sums = a4764c3d5fdbf080b48e5de358f7162b334b4ca88e1249975d2d378f649a2a5fbdb8823d960a5167e9fd39745966efb4a597f3195207be0bf80cec810a4dff50 sha512sums = 737953ab10027100b6bd03ca60a3f1cd4fff503c4c5a1689b3e12ef8df66a3e3347c99d498e48dccc3be8d00e9e37fcab56d5c97bbb81dd310ce757979aa0276 - sha512sums = 43625b793236742cf6297d435567a9019f69a0852eb728f71462aad64aac85046708812f4f033b6d717b5eacdad65f4725c037d5f61a02fe88dfc14830705faf - sha512sums = b64c809c9ba47b5faaf3609e1b9f24a5f62547bb3990974549b5ad7f2ee53710e9606d9d559a84cee85c0997ce086f0da8060bd9757a69448b29976b531d2103 + sha512sums = cddc836c6704810b0c9025828d0ed35ea55d5024598a4b022dc2f6332c55ddf416cfd07852e599d9deefee5d1012e82ae8488a727422e05dd20194799473317d pkgname = terasology - diff --git a/.gitignore b/.gitignore index 82572c742947..15cfc5ef0664 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ src/ *.tar.xz *.tar.gz *.zip +*.tar.zst @@ -1,26 +1,30 @@ +# Maintainer: Allison Smith <alyway@protonmail.com> +# Contributor: Anthony Wang <ta180m@gmail.com> +# Contributor: Felix Golatofski <contact@xdfr.de> +# Contributor: Max Bruckner <max@maxbruckner.de> +# I could only get this working in java-11-openjdk, hence the depends + pkgname=terasology -_version=2.1.0 -_version_postfix=alpha11 +_version=5.3.0 +_version_postfix=alpha23 pkgver=${_version}${_version_postfix} pkgrel=1 epoch=1 pkgdesc="Yet another high resolution game with blocks like Minecraft!" -arch=('x86_64' 'i686') +arch=('x86_64') license=('Apache') -url="http://terasology.org" +url="https://terasology.org" options=('!strip') -depends=('java-environment-openjdk=8' 'openal' 'libxcursor' 'libxxf86vm' 'libxrandr' 'lwjgl2') +depends=(zlib java-runtime-openjdk=11) makedepends=('unzip') source=( "$pkgname" "${pkgname}.desktop" - "rendering.cfg" "TerasologyOmega${pkgver}.zip::https://github.com/MovingBlocks/Terasology/releases/download/v${_version}/TerasologyOmega.zip" ) -sha512sums=('f94c1ac3d85e4fb91cc47056eeec3648d02be9090252401acb740af8c0580623c7ee57470d9e7317d6b577d613e317b5c16ec014f232ec68bc755e0eba7a975e' +sha512sums=('a4764c3d5fdbf080b48e5de358f7162b334b4ca88e1249975d2d378f649a2a5fbdb8823d960a5167e9fd39745966efb4a597f3195207be0bf80cec810a4dff50' '737953ab10027100b6bd03ca60a3f1cd4fff503c4c5a1689b3e12ef8df66a3e3347c99d498e48dccc3be8d00e9e37fcab56d5c97bbb81dd310ce757979aa0276' - '43625b793236742cf6297d435567a9019f69a0852eb728f71462aad64aac85046708812f4f033b6d717b5eacdad65f4725c037d5f61a02fe88dfc14830705faf' - 'b64c809c9ba47b5faaf3609e1b9f24a5f62547bb3990974549b5ad7f2ee53710e9606d9d559a84cee85c0997ce086f0da8060bd9757a69448b29976b531d2103') + 'cddc836c6704810b0c9025828d0ed35ea55d5024598a4b022dc2f6332c55ddf416cfd07852e599d9deefee5d1012e82ae8488a727422e05dd20194799473317d') package() { cd "$srcdir" @@ -31,8 +35,8 @@ package() { rm "${srcdir}/${pkgname}" "${srcdir}/${pkgname}.desktop" "${srcdir}/TerasologyOmega${pkgver}.zip" #extract and install icons - unzip -u libs/engine-${_version}.jar "org/terasology/icons/*" - pushd org/terasology/icons + unzip -u libs/engine-${_version}.jar "org/terasology/engine/icons/*" + pushd org/terasology/engine/icons for icon in * do size=${icon##*_} #gooey_sweet_XX.png -> XX.png @@ -44,19 +48,13 @@ package() { rm -r org #remove files/dirs for other operating systems and native libraries - rm run_macosx.command Terasology.{x86,x64}.exe - rm -r natives - mkdir -p natives/linux - - #link the lwjgl libraries - ln -sf /usr/share/lwjgl2/native/linux/liblwjgl64.so natives/linux - ln -sf /usr/share/lwjgl2/native/linux/libjinput-linux64.so natives/linux - ln -sf /usr/share/lwjgl2/native/linux/liblwjgl.so natives/linux - ln -sf /usr/share/lwjgl2/native/linux/libjinput-linux.so natives/linux - + #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/${pkgname}" - - # Copy this file (not entirely sure about this, but doesn't start without it) - install -Dm 644 "${srcdir}/rendering.cfg" "${pkgdir}/usr/share/${pkgname}/configs/engine/rendering.cfg" - rm "${pkgdir}/usr/share/${pkgname}/rendering.cfg" + } diff --git a/rendering.cfg b/rendering.cfg deleted file mode 100644 index bb96386e1be8..000000000000 --- a/rendering.cfg +++ /dev/null @@ -1,3 +0,0 @@ -{ - "description": "Rendering Config" -}
\ No newline at end of file diff --git a/terasology b/terasology index aff3980be697..446fca6da5bc 100755 --- a/terasology +++ b/terasology @@ -1,2 +1,4 @@ #!/bin/sh -exec sh /usr/share/terasology/run_linux.sh +export PATH="/usr/lib/jvm/java-11-openjdk/bin/:$PATH" +cd /usr/share/terasology +exec sh Terasology |