add package: teeworlds

This commit is contained in:
Archlinux-Jerry Build Bot 2019-10-24 13:02:36 +08:00
parent 8aedc44cd0
commit abd085d588
3 changed files with 81 additions and 0 deletions

View file

@ -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)

66
teeworlds/PKGBUILD Normal file
View file

@ -0,0 +1,66 @@
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Armin 'IsSuE' Praher [issue.at.gmx.dot.at]
# Contributor: [vEX] <niechift.dot.vex.at.gmail.dot.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
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:

4
teeworlds/autobuild.yaml Normal file
View file

@ -0,0 +1,4 @@
type:
auto
priority:
-5