2018-12-20 16:40:30 +01:00
|
|
|
# Maintainer: Dylan Ferris <dylan@psilly.com>
|
|
|
|
|
|
|
|
_pkgname=godot-export-templates
|
|
|
|
pkgname=${_pkgname}-git
|
|
|
|
_gitname=godot
|
2023-05-07 22:31:26 +02:00
|
|
|
pkgver=4.1.r53814.43bf0b5e04
|
2023-05-13 01:17:48 +02:00
|
|
|
pkgrel=2
|
2018-12-20 16:40:30 +01:00
|
|
|
pkgdesc='Godot export templates'
|
|
|
|
url='https://godotengine.org/'
|
|
|
|
license=('MIT')
|
|
|
|
arch=('i686' 'x86_64')
|
2023-05-13 01:17:48 +02:00
|
|
|
makedepends=('git' 'scons' 'pulseaudio' 'clang' 'pkgconf' 'xorg-xrandr' 'yasm' 'lld')
|
2020-07-02 01:17:55 +02:00
|
|
|
optdepends=('godot: use the templates')
|
2018-12-20 16:40:30 +01:00
|
|
|
|
|
|
|
source=(
|
2023-05-07 22:31:26 +02:00
|
|
|
"godot::git+https://github.com/godotengine/${_gitname}.git"
|
2018-12-20 16:40:30 +01:00
|
|
|
)
|
|
|
|
sha256sums=(
|
|
|
|
'SKIP'
|
|
|
|
)
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_gitname}"
|
|
|
|
_major=$(cat version.py|grep "major" | sed 's/major = //')
|
|
|
|
_minor=$(cat version.py|grep "minor" | sed 's/minor = //')
|
|
|
|
_revision=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
|
|
|
|
echo "${_major}.${_minor}.${_revision}"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}"/${_gitname}
|
|
|
|
sed -n '/\/* Copyright/,/IN THE SOFTWARE./p' main/main.cpp | sed 's/\/\*//' | sed 's/\*\///' > LICENSE
|
2018-12-20 18:18:37 +01:00
|
|
|
|
2023-05-07 22:31:26 +02:00
|
|
|
# 64 bit
|
|
|
|
scons platform=linuxbsd tools=no target=template_debug arch=x86_64 use_llvm=yes linker=lld use_static_cpp=no -j$(nproc)
|
|
|
|
scons platform=linuxbsd tools=no target=template_release arch=x86_64 production=yes -j$(nproc)
|
2020-07-02 01:17:55 +02:00
|
|
|
|
2023-05-07 22:31:26 +02:00
|
|
|
# 32 bit
|
|
|
|
#scons platform=linuxbsd tools=no target=template_debug arch=x86_32 use_llvm=yes linker=lld use_static_cpp=no -j$(nproc)
|
|
|
|
#scons platform=linuxbsd tools=no target=template_release arch=x86_32 production=yes -j$(nproc)
|
2018-12-20 16:40:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}"/${_gitname}
|
|
|
|
mkdir -p "${pkgdir}"/usr/share/godot/templates/
|
2019-06-16 03:51:36 +02:00
|
|
|
|
2023-05-07 22:31:26 +02:00
|
|
|
# 64 bit
|
|
|
|
install -Dm644 bin/godot.linuxbsd.template_debug.x86_64.llvm "${pkgdir}"/usr/share/godot/templates/
|
|
|
|
install -Dm644 bin/godot.linuxbsd.template_release.x86_64 "${pkgdir}"/usr/share/godot/templates/
|
2019-06-16 03:51:36 +02:00
|
|
|
|
2023-05-07 22:31:26 +02:00
|
|
|
# 32 bit
|
|
|
|
#install -Dm644 bin/godot.linuxbsd.template_debug.x86_32.llvm "${pkgdir}"/usr/share/godot/templates/
|
|
|
|
#install -Dm644 bin/godot.linuxbsd.template_release.x86_32 "${pkgdir}"/usr/share/godot/templates/
|
2019-06-16 03:51:36 +02:00
|
|
|
|
2018-12-20 16:40:30 +01:00
|
|
|
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${_pkgname}"/LICENSE
|
|
|
|
}
|
2023-05-07 22:31:26 +02:00
|
|
|
|