void-packages/srcpkgs/godot/template
Juan RP 21fdf73989 srcpkgs: replace all refs from voidlinux.eu to voidlinux.org.
Revbumped affected packages.

Signed-off-by: Juan RP <xtraeme@gmail.com>

[ci skip]
2019-06-06 18:42:35 +02:00

43 lines
1.5 KiB
Bash

# Template file for 'godot'
pkgname=godot
version=3.1
revision=2
wrksrc="${pkgname}-${version}-stable"
build_style=scons
# Godot contains private copies of libraries
# that already have been packaged elsewhere.
make_build_args="platform=x11 tools=yes target=release_debug dev=no progress=no pulseaudio=no"
hostmakedepends="pkg-config clang"
makedepends="
alsa-lib-devel freetype-devel glu-devel libXcursor-devel libXi-devel
libXinerama-devel libXrender-devel libXrandr-devel libressl-devel libX11-devel"
short_desc="Multiplatform 2D and 3D engine"
maintainer="Nick Hahn <nick.hahn@hotmail.de>"
license="MIT"
homepage="https://www.godotengine.org/"
distfiles="https://github.com/godotengine/${pkgname}/archive/${version}-stable.tar.gz"
checksum=cd66354b2397f28193ba3add8d8cc5c3562775f662887b56f16de82974f041e3
nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio
CFLAGS+=" -fPIE -fPIC"
LDFLAGS+=" -pie"
post_extract() {
sed -i -e "/openssl_version =/,+4d" platform/x11/detect.py
sed -i -e 's/#ifdef CRASH_HANDLER_ENABLED/#if defined(CRASH_HANDLER_ENABLED) \&\& defined(__GLIBC__)/' platform/x11/crash_handler_x11.cpp
}
pre_build() {
export CXXFLAGS=" $CXXFLAGS "
}
do_install() {
vlicense LICENSE.txt
vinstall ${FILESDIR}/godot.desktop 644 /usr/share/applications/
vinstall ${wrksrc}/logo.png 644 /usr/share/pixmaps/ godot.png
case "$XBPS_TARGET_MACHINE" in
x86_64*|aarch64*|ppc64*) vbin bin/godot.x11.opt.tools.64 godot;;
*) vbin bin/godot.x11.opt.tools.32 godot;;
esac
}