diff --git a/.SRCINFO b/.SRCINFO index 4ea88f5..0e6f9bb 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -9,8 +9,10 @@ pkgbase = godot-git makedepends = git makedepends = scons makedepends = pulseaudio - makedepends = clang + makedepends = gcc makedepends = pkgconf + makedepends = xorg-xrandr + makedepends = yasm depends = glu depends = libxcursor depends = libxinerama @@ -19,10 +21,8 @@ pkgbase = godot-git depends = mesa provides = godot conflicts = godot - source = git://github.com/godotengine/godot.git#branch=master source = godot.desktop source = icon.png - sha256sums = SKIP sha256sums = 2ae039a3879b23e157f2125e0b326fa1ef66d56bfd596c790e8943d27652e93a sha256sums = 99f9d17c4355b274ef0c08069cf6e756a98cd5c9d9d22d1b39f79538134277e1 diff --git a/PKGBUILD b/PKGBUILD index 34ded13..897131d 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,4 +1,5 @@ -# Maintainer: Cristian Porras +# Maintainer: QuantMint +# Contributor: Cristian Porras # Contributor: Matthew Bentley _pkgname=godot @@ -9,7 +10,7 @@ pkgdesc="Godot Game Engine: An advanced, feature packed, multi-platform 2D and 3 url="http://www.godotengine.org" license=('MIT') arch=('i686' 'x86_64') -makedepends=('git' 'scons' 'pulseaudio' 'clang' 'pkgconf') +makedepends=('git' 'scons' 'pulseaudio' 'gcc' 'pkgconf' 'xorg-xrandr' 'yasm') depends=('glu' 'libxcursor' 'libxinerama' 'alsa-lib' 'freetype2' 'mesa') optdepends=() conflicts=("godot") @@ -22,16 +23,25 @@ else fi source=( - "git://github.com/godotengine/${_pkgname}.git#branch=master" godot.desktop icon.png ) sha256sums=( - 'SKIP' '2ae039a3879b23e157f2125e0b326fa1ef66d56bfd596c790e8943d27652e93a' '99f9d17c4355b274ef0c08069cf6e756a98cd5c9d9d22d1b39f79538134277e1' ) +prepare() { + if [ ! -d "${srcdir}/${_pkgname}" ] + then + cd ${srcdir} + git clone https://github.com/godotengine/godot.git --branch master --single-branch --depth 1 + else + cd "${srcdir}/${_pkgname}" + git fetch --depth 1 origin master + git reset --hard origin/master + fi +} pkgver() { cd "${srcdir}/${_pkgname}" @@ -45,7 +55,7 @@ pkgver() { build() { cd "${srcdir}"/${_pkgname} sed -n '/\/* Copyright/,/IN THE SOFTWARE./p' main/main.cpp | sed 's/\/\*//' | sed 's/\*\///' > LICENSE - scons platform=linuxbsd target=release_debug use_llvm=yes -j$(nproc) + scons platform=linuxbsd target=release_debug -j$((`nproc`+1)) } package() { @@ -57,7 +67,7 @@ package() { cd "${srcdir}"/${_pkgname} - install -D -m755 bin/godot.linuxbsd.opt.tools.${_arch}.llvm "${pkgdir}"/usr/bin/godot + install -D -m755 bin/godot.linuxbsd.opt.tools.${_arch} "${pkgdir}"/usr/bin/godot install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/godot-git/LICENSE }