summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJorge Araya Navarro2015-06-19 01:58:31 -0600
committerJorge Araya Navarro2015-06-19 01:58:31 -0600
commitf45664b49bb1e707363f792431b31e360a17fd6e (patch)
treecb5221c7f1853f3988535ec7e81c279a78f38c6b /PKGBUILD
downloadaur-f45664b49bb1e707363f792431b31e360a17fd6e.tar.gz
first commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..748d8c06b6c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Jorge Araya Navarro <elcorreo@deshackra.com>
+# Contributor: Cristian Porras <porrascristian@gmail.com>
+# Contributor: Matthew Bentley <matthew@mtbentley.us>
+
+pkgname=godot
+pkgver=1.1
+pkgrel=4
+pkgdesc="An advanced, feature packed, multi-platform 2D and 3D game engine"
+url="http://www.godotengine.org"
+license=('MIT')
+arch=('i686' 'x86_64')
+makedepends=('scons')
+depends=('glu' 'libxcursor' 'alsa-lib' 'freetype2' 'mesa')
+optdepends=()
+conflicts=("godot-git")
+_arch=''
+if test "$CARCH" == x86_64; then
+ _arch=('64')
+else
+ _arch=('32')
+fi
+
+source=(
+ "https://github.com/okamstudio/godot/archive/${pkgver}-stable.tar.gz"
+ godot.desktop
+ icon.png
+)
+md5sums=('87eb2fc3518ce7a27957fada1ba003e9'
+ 'dca7c5c5682bdc8cc83386034e0d7d07'
+ 'f756e85756a9cbc06a328414abf74585')
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}-stable
+
+ sed -n '/\/* Copyright/,/IN THE SOFTWARE./p' main/main.cpp | sed 's/\/\*//' | sed 's/\*\///' > LICENSE
+
+ scons platform=x11 target=release_debug
+}
+
+package() {
+
+ cd "${srcdir}"
+
+ install -Dm644 godot.desktop "${pkgdir}"/usr/share/applications/godot.desktop
+ install -Dm644 icon.png "${pkgdir}"/usr/share/pixmaps/godot.png
+
+ cd "${srcdir}"/${pkgname}-${pkgver}-stable
+
+ install -D -m755 bin/godot.x11.tools.${_arch} "${pkgdir}"/usr/bin/godot
+ install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/godot/LICENSE
+}
+