# Maintainer: Borislav Kosharov # Contributor: Jorge Araya Navarro # Contributor: Cristian Porras # Contributor: Matthew Bentley pkgname=godot-headless pkgver=3.2.3 pkgrel=1 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' 'gcc' 'yasm') depends=('freetype2' 'alsa-lib' 'libglvnd') conflicts=('godot' 'godot-git' 'godot-pulse') _arch='' if test "$CARCH" == x86_64; then _arch=('64') else _arch=('32') fi source=( "https://github.com/godotengine/godot/archive/${pkgver}-stable.tar.gz" ) sha256sums=('4c2a8e7da1ad05c6223b0ff6cf2be124dad6708b56a8ec9910dc2aaf82a553ae') build() { cd "${srcdir}"/godot-${pkgver}-stable scons platform=server \ tools=yes \ target=release_debug \ use_llvm=no \ colored=yes \ pulseaudio=no bits=${_arch} -j $((`nproc`+1)) } package() { cd "${srcdir}"/godot-${pkgver}-stable install -D -m755 bin/godot_server.x11.opt.tools.${_arch} "${pkgdir}"/usr/bin/godot install -D -m644 "${srcdir}"/godot-${pkgver}-stable/LICENSE.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE install -D -m644 "${srcdir}"/godot-${pkgver}-stable/misc/dist/linux/godot.6 "${pkgdir}"/usr/share/man/man6/godot.6 }