diff options
author | Rafael Ferreira | 2015-06-20 13:38:47 -0300 |
---|---|---|
committer | Rafael Ferreira | 2015-06-20 13:38:47 -0300 |
commit | d73a5501d60e5d68ac0c90c472f7c445ffea8d1c (patch) | |
tree | 3bb67821cf5f8b8124b4663dbcec07f0782d84f7 | |
download | aur-d73a5501d60e5d68ac0c90c472f7c445ffea8d1c.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | PKGBUILD | 59 |
2 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e1f5bf0b3d44 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = teeworlds-git + pkgdesc = Multiplayer 2D shooter + pkgver = 0.7.start.480.g19e3433 + pkgrel = 1 + url = http://teeworlds.com + arch = i686 + arch = x86_64 + license = custom + makedepends = python + makedepends = git + makedepends = bam + makedepends = imagemagick + makedepends = gendesk + depends = alsa-lib + depends = glu + depends = mesa + depends = gcc-libs + depends = sdl + depends = freetype2 + provides = teeworlds + conflicts = teeworlds + source = git+https://github.com/teeworlds/teeworlds.git + source = git+https://github.com/teeworlds/teeworlds-translation.git + source = git+https://github.com/teeworlds/teeworlds-maps.git + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + +pkgname = teeworlds-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4c4f72326609 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Contributor: Lari Tikkanen <lartza@wippies.com> +# Maintainer: josephgbr <rafael.f.f1@gmail.com> + +pkgname=teeworlds-git +pkgver=0.7.start.480.g19e3433 +pkgrel=1 +pkgdesc='Multiplayer 2D shooter' +arch=('i686' 'x86_64') +url="http://teeworlds.com" +license=('custom') +depends=('alsa-lib' 'glu' 'mesa' 'gcc-libs' 'sdl' 'freetype2') +makedepends=('python' 'git' 'bam' 'imagemagick' 'gendesk') +provides=('teeworlds') +conflicts=('teeworlds') +source=(git+https://github.com/teeworlds/teeworlds.git + git+https://github.com/teeworlds/teeworlds-translation.git + git+https://github.com/teeworlds/teeworlds-maps.git) +md5sums=('SKIP' 'SKIP' 'SKIP') + +pkgver() { + cd teeworlds + git describe | sed 's/^v//;s/-/./g;s/_/./g;' +} + +prepare() { + convert "teeworlds/other/icons/Teeworlds.ico" "$srcdir/teeworlds.png" + gendesk -n --pkgname "teeworlds" --pkgdesc "$pkgdesc" \ + --name 'Teeworlds' --categories 'Game;ArcadeGame' + + cd teeworlds + git submodule init + git config submodule.data/languages.url "$srcdir/teeworlds-translation" + git config submodule.data/maps.url "$srcdir/teeworlds-maps" + git submodule update +} + +build() { + cd teeworlds + bam client server +} + +package() { + cd teeworlds + + install -dm755 "$pkgdir"/usr/bin \ + "$pkgdir"/usr/share/{applications,pixmaps} \ + "$pkgdir"/usr/share/{licenses/teeworlds,teeworlds/data} + + # Install data files + cp -r data/* "$pkgdir"/usr/share/teeworlds/data + + install -m755 build/$CARCH/debug/teeworlds "$pkgdir"/usr/bin/teeworlds + install -m755 build/$CARCH/debug/teeworlds_srv "$pkgdir"/usr/bin/teeworlds_srv + + install -m644 license.txt "$pkgdir"/usr/share/licenses/teeworlds/ + install -m644 ../teeworlds.desktop "$pkgdir"/usr/share/applications/ + install -m644 ../teeworlds-0.png "$pkgdir"/usr/share/pixmaps/teeworlds.png + +} |