2021-10-26 06:35:58 +02:00
|
|
|
# Maintainer: tas <tasgon_@out/look.com>
|
2020-05-06 15:07:49 +02:00
|
|
|
# Maintainer: QuantMint <qua/ntmint@/protonm/ail.com>
|
2022-09-17 10:06:04 +02:00
|
|
|
# Contributor: Daniel Segesdi <sege/sdi.d/ani@/gma/il.com>
|
2020-05-06 15:07:49 +02:00
|
|
|
# Contributor: Cristian Porras <porrascristian@gmail.com>
|
2015-06-19 18:10:01 +02:00
|
|
|
# Contributor: Matthew Bentley <matthew@mtbentley.us>
|
|
|
|
|
|
|
|
_pkgname=godot
|
|
|
|
pkgname=${_pkgname}-git
|
2022-09-17 10:06:04 +02:00
|
|
|
pkgver=4.0.r1.4ba934b
|
2021-10-26 06:35:58 +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')
|
2022-09-17 10:06:04 +02:00
|
|
|
makedepends=('gcc' 'git' 'scons' 'pkgconf' 'yasm')
|
|
|
|
depends=('alsa-lib' 'glu' 'libglvnd' 'libxcursor' 'libxinerama' 'libxi' 'libxrandr' 'mesa' 'pulseaudio')
|
2015-06-19 18:10:01 +02:00
|
|
|
optdepends=()
|
|
|
|
conflicts=("godot")
|
|
|
|
provides=("godot")
|
|
|
|
_arch=''
|
|
|
|
if test "$CARCH" == x86_64; then
|
2022-09-17 10:06:04 +02:00
|
|
|
_arch=('x86_64')
|
2015-06-19 18:10:01 +02:00
|
|
|
else
|
|
|
|
_arch=('32')
|
|
|
|
fi
|
|
|
|
|
|
|
|
source=(
|
|
|
|
godot.desktop
|
|
|
|
icon.png
|
|
|
|
)
|
|
|
|
sha256sums=(
|
2018-02-04 23:41:05 +01:00
|
|
|
'2ae039a3879b23e157f2125e0b326fa1ef66d56bfd596c790e8943d27652e93a'
|
|
|
|
'99f9d17c4355b274ef0c08069cf6e756a98cd5c9d9d22d1b39f79538134277e1'
|
2015-06-19 18:10:01 +02:00
|
|
|
)
|
|
|
|
|
2020-05-06 15:07:49 +02:00
|
|
|
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
|
|
|
|
}
|
2015-06-19 18:10:01 +02:00
|
|
|
|
|
|
|
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}
|
2020-06-18 10:56:09 +02:00
|
|
|
scons platform=linuxbsd target=release_debug werror=no -j$((`nproc`+1))
|
2015-06-19 18:10:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
2022-09-17 10:06:04 +02:00
|
|
|
cd "${srcdir}"
|
2015-06-19 18:10:01 +02:00
|
|
|
|
|
|
|
install -Dm644 godot.desktop "${pkgdir}"/usr/share/applications/godot.desktop
|
|
|
|
install -Dm644 icon.png "${pkgdir}"/usr/share/pixmaps/godot.png
|
2022-09-17 10:06:04 +02:00
|
|
|
|
2015-06-19 18:10:01 +02:00
|
|
|
cd "${srcdir}"/${_pkgname}
|
|
|
|
|
2020-05-06 15:07:49 +02:00
|
|
|
install -D -m755 bin/godot.linuxbsd.opt.tools.${_arch} "${pkgdir}"/usr/bin/godot
|
2022-09-17 10:06:04 +02:00
|
|
|
install -D -m644 LICENSE.txt "${pkgdir}"/usr/share/licenses/godot-git/LICENSE
|
2015-06-19 18:10:01 +02:00
|
|
|
}
|
|
|
|
|