aboutsummaryrefslogtreecommitdiffstats
path: root/testing/godot/APKBUILD
blob: 63c97d4872f3c300441c5db38bfd70709f909ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=godot
pkgver=3.1.2
pkgrel=0
pkgdesc="An advanced, feature packed, multi-platform 2D and 3D game engine"
url="http://www.godotengine.org"
arch="x86_64" # deactivated for other architecture due to conflicts between binaries
license="MIT"
# TODO: Use system freetype instead of bundled one.
makedepends="scons gcc python2 libxcursor-dev libxinerama-dev libexecinfo-dev
	libxrandr-dev libxi-dev libx11-dev alsa-lib-dev mesa-dev yasm-dev"
options="!check" # no testsuites
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/godotengine/godot/archive/$pkgver-stable.tar.gz
	crash_handler_x11.patch"
builddir="$srcdir/$pkgname-$pkgver-stable"

build() {
	scons platform=x11 \
	tools=yes \
	target=release_debug \
	use_llvm=no \
	colored=yes \
	pulseaudio=no bits=64 -j4
}

package() {
	install -Dm644 misc/dist/linux/org.godotengine.Godot.desktop "$pkgdir/usr/share/applications/godot.desktop"
	install -Dm644 icon.svg "$pkgdir/usr/share/pixmaps/godot.svg"

	install -D -m755 bin/godot.x11.opt.tools.64 "$pkgdir/usr/bin/godot"
	install -D -m644 misc/dist/linux/godot.6 "$pkgdir/usr/share/man/man6/godot.6"
}
sha512sums="b38ae8400c25d580b8aa642c857948158d7ea4a6f6103679984cf1119fb2d0455647f2e6d1262b32bc963b8a28c780a74aa0d2e9a1df8d98c0e8bc671d3f4f1f  godot-3.1.2.tar.gz
3d1d31a55dedbf66aba212d127351d9d9c89e2575bd50cdb6d9a6c40c240fdfdcb508f03562aedd8ef04acf8442ad5422522f0242a49ae06819a2f97983f0b44  crash_handler_x11.patch"