blob: 16a858568455abfa546b2bbbbf0548939b38aae2 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer: Jorge Araya Navarro <elcorreo@deshackra.com>
# Contributor: Cristian Porras <porrascristian@gmail.com>
# Contributor: Matthew Bentley <matthew@mtbentley.us>
pkgname=godot
pkgver=3.0.1
pkgrel=2
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=('libxcursor' 'libxinerama' 'freetype2' 'alsa-lib' 'libxrandr' 'libxi' 'libglvnd')
conflicts=("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"
godot.desktop
icon.png
)
sha256sums=('57b4af6f1ee90f85ecc9f2100d66e77956d5f8e26ae844638a2851f8ad080c4d'
'd2f5ae30b8c0c3fd8a20a451d34e9e9d0ba1b60a39b1f68484a9a74227c83822'
'b6bb8e42625414303cf7608f08fe63bd3267486bf7a96586ebab05ade5189785')
prepare() {
cd "${srcdir}"/${pkgname}-${pkgver}-stable
}
build() {
cd "${srcdir}"/${pkgname}-${pkgver}-stable
sed -n '/\/* Copyright/,/IN THE SOFTWARE./p' main/main.cpp | sed 's/\/\*//' | sed 's/\*\///' > LICENSE
scons platform=x11 \
tools=yes \
target=release_debug \
use_llvm=no \
builtin_openssl=yes \
colored=yes \
pulseaudio=no bits=${_arch} -j $((`nproc`+1))
}
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}-${pkgver}-stable
install -D -m755 bin/godot.x11.opt.tools.${_arch} "${pkgdir}"/usr/bin/godot
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/godot/LICENSE
}
|