diff --git a/teeworlds/0001-bam-aarch64.patch b/teeworlds/0001-bam-aarch64.patch new file mode 100644 index 0000000..b81ab0b --- /dev/null +++ b/teeworlds/0001-bam-aarch64.patch @@ -0,0 +1,11 @@ +--- bam.lua 2019-09-27 09:41:49.233634635 +0800 ++++ bam.lua 2019-09-27 09:39:23.690960456 +0800 +@@ -180,6 +180,8 @@ + settings.link.flags:Add("-m64") + elseif arch == "armv7l" then + -- arm 32 bit ++ elseif arch == "aarch64" then ++ -- arm 64 bit + else + print("Unknown Architecture '" .. arch .. "'. Supported: x86, x86_64") + os.exit(1) diff --git a/teeworlds/PKGBUILD b/teeworlds/PKGBUILD new file mode 100644 index 0000000..ad99390 --- /dev/null +++ b/teeworlds/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: Allan McRae +# Contributor: Armin 'IsSuE' Praher [issue.at.gmx.dot.at] +# Contributor: [vEX] +# Contributor: Daniel J Griffiths +pkgname=teeworlds +pkgver=0.7.3.1 +_pkgver=0.7.3.1 +pkgrel=1 +pkgdesc='Fast-paced multiplayer 2D shooter game' +arch=('aarch64') +url='https://www.teeworlds.com' +license=('custom') +depends=('alsa-lib' 'glu' 'sdl2' 'freetype2') +makedepends=('python' 'bam' 'mesa' 'imagemagick' 'gendesk' 'git') +source=("git+git://github.com/teeworlds/teeworlds.git#tag=$_pkgver" + "git+git://github.com/teeworlds/teeworlds-maps.git" + "git+git://github.com/teeworlds/teeworlds-translation.git" + "bam-v0.5.1.tar.gz::https://github.com/matricks/bam/archive/v0.5.1.tar.gz" + "0001-bam-aarch64.patch") + +sha512sums=('SKIP' + 'SKIP' + 'SKIP' + 'e6f1b3daad6073c58b0e3cbf836bb0a6b66f0c36532d6e6eca9949239ab8b584cc88f892cce6f74974e370a8a688f33a95dde86dd65cc1790e49e5f8aeab0fef' + '14514dc65dfc3b00f187d1be5064005d2ce138cf310cec0414255a344c1aca7cfe674b3a76710d104fa818f3c052b463d4df335224d73dee22ceb7bbf4288183') + +prepare() { + convert +set date:create +set date:modify "${pkgname}/other/icons/teeworlds.ico" "${srcdir}/${pkgname}.png" + gendesk -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}" \ + --name 'Teeworlds' --categories 'Game;ArcadeGame' + + cd teeworlds + git submodule init + git config submodule."datasrc/languages".url ${srcdir}/teeworlds-translation + git config submodule."datasrc/maps".url ${srcdir}/teeworlds-maps + git submodule update + patch -p0 < ../0001-bam-aarch64.patch +} + +build() { + cd bam-0.5.1 + ./make_unix.sh + cd .. + + cd teeworlds + ../bam-0.5.1/bam conf=release arch=aarch64 +} + +package() { + cd teeworlds + + # Install data files + mkdir -p ${pkgdir}/usr/share/${pkgname}/data + cp -r build/${CARCH}/release/data/* ${pkgdir}/usr/share/${pkgname}/data + + install -Dm755 build/${CARCH}/release/${pkgname} ${pkgdir}/usr/bin/${pkgname} + install -Dm755 build/${CARCH}/release/${pkgname}_srv ${pkgdir}/usr/bin/${pkgname}_srv + + install -Dm644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop + install -Dm644 ${srcdir}/${pkgname}-0.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png + + install -Dm644 license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt +} + +# vim:set ts=2 sw=2 et: diff --git a/teeworlds/autobuild.yaml b/teeworlds/autobuild.yaml new file mode 100644 index 0000000..5c7d4d3 --- /dev/null +++ b/teeworlds/autobuild.yaml @@ -0,0 +1,4 @@ +type: + auto +priority: + -5