summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ferreira2015-06-20 13:44:25 -0300
committerRafael Ferreira2015-06-20 13:44:25 -0300
commit928080e569c113ee15ca375c2142914e5d5c6050 (patch)
tree3f1db1031a257962fbbf46180b7d1226c6f8e3a3
downloadaur-teeworlds-sushitee.tar.gz
Initial import
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD49
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b6078eac873
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = teeworlds-sushitee
+ pkgdesc = A customized client by SushiTee of this 2D shooting game
+ pkgver = 0.6.2
+ pkgrel = 2
+ url = https://www.teeworlds.com
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = unzip
+ makedepends = python
+ makedepends = bam
+ makedepends = mesa
+ makedepends = imagemagick
+ makedepends = gendesk
+ depends = alsa-lib
+ depends = glu
+ depends = sdl
+ depends = freetype2
+ provides = teeworlds
+ conflicts = teeworlds
+ source = https://github.com/SushiTee/teeworlds/archive/Client-Pack-0.6.tar.gz
+ source = https://github.com/SushiTee/teeworlds-translation/archive/master.zip
+ md5sums = f328e401de98bb0f2a9d7ded1a0398bd
+ md5sums = b7d7c0be0667c34ebb94b1663db7f5ac
+
+pkgname = teeworlds-sushitee
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e9ac76df7ac
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: josephgbr <rafael.f.f1@gmail.com>
+
+pkgname=teeworlds-sushitee
+pkgver=0.6.2
+pkgrel=2
+pkgdesc="A customized client by SushiTee of this 2D shooting game"
+arch=('i686' 'x86_64')
+url="https://www.teeworlds.com"
+license=('custom')
+depends=('alsa-lib' 'glu' 'sdl' 'freetype2')
+makedepends=('unzip' 'python' 'bam' 'mesa' 'imagemagick' 'gendesk')
+provides=('teeworlds')
+conflicts=('teeworlds')
+source=(https://github.com/SushiTee/teeworlds/archive/Client-Pack-0.6.tar.gz
+ https://github.com/SushiTee/teeworlds-translation/archive/master.zip)
+md5sums=('f328e401de98bb0f2a9d7ded1a0398bd'
+ 'b7d7c0be0667c34ebb94b1663db7f5ac')
+
+prepare() {
+ convert "teeworlds-Client-Pack-0.6/other/icons/Teeworlds.ico" "$srcdir/teeworlds.png"
+ gendesk -f -n --pkgname "teeworlds" --pkgdesc "$pkgdesc" \
+ --name 'Teeworlds' --categories 'Game;ArcadeGame'
+}
+
+build() {
+ # Build teeworlds
+ cd teeworlds-Client-Pack-0.6
+ bam server_release client_release
+}
+
+package() {
+ cd teeworlds-Client-Pack-0.6
+
+ # Install data files
+ mkdir -p "${pkgdir}"/usr/share/teeworlds/data
+ cp -r data/* "${pkgdir}"/usr/share/teeworlds/data
+ mv ../teeworlds-translation-master/data/languages "${pkgdir}"/usr/share/teeworlds/data
+
+ install -Dm755 teeworlds "${pkgdir}"/usr/bin/teeworlds
+ install -Dm755 teeworlds_srv "${pkgdir}"/usr/bin/teeworlds_srv
+
+ install -Dm644 "${srcdir}"/teeworlds.desktop \
+ "${pkgdir}"/usr/share/applications/teeworlds.desktop
+ install -Dm644 "${srcdir}"/teeworlds-0.png \
+ "${pkgdir}"/usr/share/pixmaps/teeworlds.png
+
+ install -Dm644 license.txt \
+ "${pkgdir}"/usr/share/licenses/teeworlds/license.txt
+}