63 lines
1.9 KiB
Bash
63 lines
1.9 KiB
Bash
# Maintainer: Cristian Porras <porrascristian@gmail.com>
|
|
# Contributor: Matthew Bentley <matthew@mtbentley.us>
|
|
|
|
_pkgname=godot
|
|
pkgname=${_pkgname}-git
|
|
pkgver=3.1.dev
|
|
pkgrel=2
|
|
pkgdesc="Godot Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine."
|
|
url="http://www.godotengine.org"
|
|
license=('MIT')
|
|
arch=('i686' 'x86_64')
|
|
makedepends=('git' 'scons' 'pulseaudio' 'clang' 'pkgconf')
|
|
depends=('glu' 'libxcursor' 'libxinerama' 'alsa-lib' 'freetype2' 'mesa')
|
|
optdepends=()
|
|
conflicts=("godot")
|
|
provides=("godot")
|
|
_arch=''
|
|
if test "$CARCH" == x86_64; then
|
|
_arch=('64')
|
|
else
|
|
_arch=('32')
|
|
fi
|
|
|
|
source=(
|
|
"git://github.com/godotengine/${_pkgname}.git#branch=master"
|
|
godot.desktop
|
|
icon.png
|
|
)
|
|
sha256sums=(
|
|
'SKIP'
|
|
'2ae039a3879b23e157f2125e0b326fa1ef66d56bfd596c790e8943d27652e93a'
|
|
'99f9d17c4355b274ef0c08069cf6e756a98cd5c9d9d22d1b39f79538134277e1'
|
|
)
|
|
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/${_pkgname}"
|
|
_major=$(cat version.py|grep "major" | sed 's/major = //')
|
|
_minor=$(cat version.py|grep "minor" | sed 's/minor = //')
|
|
_revision=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
|
|
echo "${_major}.${_minor}.${_revision}"
|
|
|
|
}
|
|
|
|
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)
|
|
}
|
|
|
|
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}.llvm "${pkgdir}"/usr/bin/godot
|
|
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/godot-git/LICENSE
|
|
}
|
|
|