virtualx-engine-templates-arch/PKGBUILD

65 lines
2.2 KiB
Bash
Raw Normal View History

2018-12-20 16:40:30 +01:00
# Maintainer: Dylan Ferris <dylan@psilly.com>
_pkgname=godot-export-templates
pkgname=${_pkgname}-git
_gitname=godot
2018-12-31 02:42:08 +01:00
pkgver=3.1.dev
pkgrel=1
2018-12-20 16:40:30 +01:00
pkgdesc='Godot export templates'
url='https://godotengine.org/'
license=('MIT')
arch=('i686' 'x86_64')
2019-06-16 03:46:58 +02:00
makedepends=('git' 'scons' 'pulseaudio' 'clang' 'pkgconf')
2018-12-20 16:40:30 +01:00
depends=('glu' 'libxcursor' 'libxinerama' 'alsa-lib' 'freetype2' 'mesa')
source=(
"git://github.com/godotengine/${_gitname}.git#branch=master"
)
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
# 64 bit x11 client
2018-12-20 16:40:30 +01:00
scons platform=x11 tools=no target=release bits=64 CXX=clang++ -j$(nproc)
#scons platform=x11 tools=no target=release_debug bits=64 CXX=clang++ -j$(nproc)
2018-12-20 18:18:37 +01:00
# 64 bit headless server
scons platform=server tools=no target=release bits=64 CXX=clang++ -j$(nproc)
#scons platform=server tools=no target=release_debug bits=64 CXX=clang++ -j$(nproc)
2018-12-20 18:18:37 +01:00
# 32 bit x11
#scons platform=x11 tools=no target=release bits=32 CXX=clang++ -j$(nproc)
#scons platform=x11 tools=no target=release_debug bits=32 CXX=clang++ -j$(nproc)
2018-12-20 16:40:30 +01:00
}
package() {
cd "${srcdir}"/${_gitname}
mkdir -p "${pkgdir}"/usr/share/godot/templates/
# 64 bit x11
2018-12-20 16:40:30 +01:00
install -Dm755 bin/godot.x11.opt.64.llvm "${pkgdir}"/usr/share/godot/templates/
#install -Dm755 bin/godot.x11.opt.debug.64.llvm "${pkgdir}"/usr/share/godot/templates/
# 64 bit server
2018-12-20 19:28:01 +01:00
install -Dm755 bin/godot_server.x11.opt.64 "${pkgdir}"/usr/share/godot/templates/
#install -Dm755 bin/godot_server.x11.opt.debug.64 "${pkgdir}"/usr/share/godot/templates/
# 32 bit x11
#install -Dm755 bin/godot.x11.opt.32.llvm "${pkgdir}"/usr/share/godot/templates/
#install -Dm755 bin/godot.x11.opt.debug.32.llvm "${pkgdir}"/usr/share/godot/templates/
2018-12-20 16:40:30 +01:00
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${_pkgname}"/LICENSE
}