summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfusion8092016-09-09 21:31:49 +1000
committerfusion8092016-09-09 21:31:49 +1000
commitfb6cf1a2dc210629fb6501234e45b4749e591a9c (patch)
tree438c711f4708ac56580d16a7f3a60715dc89db2e
downloadaur-fb6cf1a2dc210629fb6501234e45b4749e591a9c.tar.gz
Initial commit
-rw-r--r--.SRCINFO43
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD61
3 files changed, 108 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6100494e692
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,43 @@
+# Generated by mksrcinfo v8
+# Fri Sep 9 11:31:48 UTC 2016
+pkgbase = 0ad-git
+ pkgdesc = Cross-platform, 3D and historically-based real-time strategy game
+ pkgver = 18062
+ pkgrel = 1
+ url = http://play0ad.com/
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ license = CCPL
+ makedepends = boost
+ makedepends = cmake
+ makedepends = mesa
+ makedepends = zip
+ makedepends = python2
+ makedepends = libsm
+ depends = binutils
+ depends = boost-libs
+ depends = curl
+ depends = enet
+ depends = libogg
+ depends = libpng
+ depends = libvorbis
+ depends = libxml2
+ depends = openal
+ depends = sdl2
+ depends = wxgtk
+ depends = zlib
+ depends = libgl
+ depends = 0ad-data
+ depends = glu
+ depends = gloox
+ depends = miniupnpc
+ depends = icu
+ depends = nspr
+ provides = 0ad
+ conflicts = 0ad
+ source = git+https://github.com/0ad/0ad.git
+ md5sums = SKIP
+
+pkgname = 0ad-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..c45782e72b5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+0ad
+pkg
+src
+*.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..00eb98617c3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,61 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: t3ddy <t3ddy1988 "at" gmail {dot} com>
+# Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
+pkgname=0ad-git
+_pkgname=0ad
+pkgver=18062
+pkgrel=1
+pkgdesc="Cross-platform, 3D and historically-based real-time strategy game"
+arch=('i686' 'x86_64')
+url="http://play0ad.com/"
+conflicts=('0ad')
+provides=('0ad')
+license=('GPL2' 'CCPL')
+depends=('binutils' 'boost-libs' 'curl' 'enet' 'libogg' 'libpng' 'libvorbis'
+ 'libxml2' 'openal' 'sdl2' 'wxgtk' 'zlib' 'libgl' '0ad-data' 'glu'
+ 'gloox' 'miniupnpc' 'icu' 'nspr')
+makedepends=('boost' 'cmake' 'mesa' 'zip' 'python2' 'libsm')
+source=("git+https://github.com/0ad/0ad.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd ${srcdir}/${_pkgname}
+ git rev-list --count HEAD
+}
+
+prepare() {
+ cd "$srcdir/${_pkgname}"
+ sed -i "s/env python/env python2/g" libraries/source/cxxtest-4.4/bin/cxxtestgen
+}
+
+build() {
+ cd "$srcdir/${_pkgname}/build/workspaces"
+
+ unset CPPFLAGS # for le spidermonkey
+
+ ./update-workspaces.sh \
+ --bindir=/usr/bin \
+ --libdir=/usr/lib/0ad \
+ --datadir=/usr/share/${pkgname}/data
+
+ cd "$srcdir/${_pkgname}/build/workspaces/gcc"
+
+ make
+}
+
+package() {
+ install -d "${pkgdir}"/usr/{bin,lib/${pkgname},share/"${pkgname}"/data}
+ cd "$srcdir/${_pkgname}"
+
+ install -Dm755 binaries/system/pyrogenesis "${pkgdir}/usr/bin"
+ install -Dm755 binaries/system/*.so "${pkgdir}/usr/lib/$pkgname"
+
+ cp -r binaries/data/l10n/ ${pkgdir}/usr/share/${pkgname}/data/
+
+ install -Dm755 build/resources/${_pkgname}.sh "${pkgdir}/usr/bin/${_pkgname}"
+ install -Dm644 build/resources/${_pkgname}.desktop \
+ "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+ install -Dm644 build/resources/${_pkgname}.png \
+ "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
+}