2015-06-19 18:10:01 +02:00
|
|
|
# Maintainer: Cristian Porras <porrascristian@gmail.com>
|
|
|
|
# Contributor: Matthew Bentley <matthew@mtbentley.us>
|
|
|
|
|
|
|
|
_pkgname=godot
|
|
|
|
pkgname=${_pkgname}-git
|
2016-11-29 02:30:42 +01:00
|
|
|
pkgver=2.2.r5989.ab637bc
|
2015-06-19 18:10:01 +02:00
|
|
|
pkgrel=1
|
2016-05-03 04:24:30 +02:00
|
|
|
pkgdesc="Godot Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine."
|
2015-06-19 18:10:01 +02:00
|
|
|
url="http://www.godotengine.org"
|
|
|
|
license=('MIT')
|
|
|
|
arch=('i686' 'x86_64')
|
2016-08-25 02:37:51 +02:00
|
|
|
makedepends=('git' 'scons' 'pulseaudio' 'clang')
|
|
|
|
depends=('glu' 'libxcursor' 'libxinerama' 'alsa-lib' 'freetype2' 'mesa')
|
2015-06-19 18:10:01 +02:00
|
|
|
optdepends=()
|
|
|
|
conflicts=("godot")
|
|
|
|
provides=("godot")
|
|
|
|
_arch=''
|
|
|
|
if test "$CARCH" == x86_64; then
|
|
|
|
_arch=('64')
|
|
|
|
else
|
|
|
|
_arch=('32')
|
|
|
|
fi
|
|
|
|
|
|
|
|
source=(
|
2015-12-21 22:59:04 +01:00
|
|
|
"git://github.com/godotengine/${_pkgname}.git#branch=master"
|
2015-06-19 18:10:01 +02:00
|
|
|
godot.desktop
|
|
|
|
icon.png
|
|
|
|
)
|
|
|
|
sha256sums=(
|
|
|
|
'SKIP'
|
|
|
|
'd2f5ae30b8c0c3fd8a20a451d34e9e9d0ba1b60a39b1f68484a9a74227c83822'
|
|
|
|
'b6bb8e42625414303cf7608f08fe63bd3267486bf7a96586ebab05ade5189785'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
2016-11-29 02:30:42 +01:00
|
|
|
_major=$(cat version.py|grep "major" | sed 's/major = //')
|
|
|
|
_minor=$(cat version.py|grep "minor" | sed 's/minor = //')
|
2015-06-22 19:30:45 +02:00
|
|
|
_revision=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
|
|
|
|
echo "${_major}.${_minor}.${_revision}"
|
|
|
|
|
2015-06-19 18:10:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}"/${_pkgname}
|
|
|
|
|
|
|
|
sed -n '/\/* Copyright/,/IN THE SOFTWARE./p' main/main.cpp | sed 's/\/\*//' | sed 's/\*\///' > LICENSE
|
|
|
|
|
2016-08-17 23:45:38 +02:00
|
|
|
scons platform=x11 target=release_debug CXX=clang++
|
2015-06-19 18:10:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
install -D -m755 bin/godot.x11.opt.tools.${_arch} "${pkgdir}"/usr/bin/godot
|
|
|
|
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/godot-git/LICENSE
|
|
|
|
}
|
|
|
|
|