-
-
Save shackra/76926de4dc416c83ad62 to your computer and use it in GitHub Desktop.
Godot game engine PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Matthew Bentley <matthew@mtbentley.us> | |
# Contributor: Jorge Araya Navarro <elcorreo@deshackra.com> | |
_pkgname=godot | |
pkgname=${_pkgname}-git | |
pkgver=1.0.3917_beta1_a65edb4 | |
pkgrel=3 | |
pkgdesc="A game engine" | |
url="http://www.godotengine.org" | |
license=('MIT') | |
arch=('i686' 'x86_64') | |
makedepends=('git' 'scons') | |
depends=('glu' 'libxcursor' 'alsa-lib' 'freetype2' 'mesa') | |
optdepends=() | |
source=( | |
"git://github.com/okamstudio/${_pkgname}.git#branch=master" | |
godot.desktop | |
icon.png | |
) | |
sha256sums=( | |
'SKIP' | |
'd2f5ae30b8c0c3fd8a20a451d34e9e9d0ba1b60a39b1f68484a9a74227c83822' | |
'b6bb8e42625414303cf7608f08fe63bd3267486bf7a96586ebab05ade5189785' | |
) | |
pkgver() { | |
cd "${srcdir}/${_pkgname}" | |
# pkgrel=4 | |
_major=$(cat version.py|grep "major" | sed 's/major=//') | |
_minor=$(cat version.py|grep "minor" | sed 's/minor=//') | |
_revision=$(cat version.py|grep revision|sed 's/revision="$Rev: //' | sed 's/ $"//') | |
_status=$(cat version.py|grep "status" | sed 's/status=//' | sed 's/"//g') | |
_git=$(git describe --always) | |
echo "${_major}.${_minor}.${_revision}_${_status}_${_git}" | |
} | |
build() { | |
cd "${srcdir}"/${_pkgname} | |
sed -n '/\/* Copyright/,/IN THE SOFTWARE./p' main/main.cpp | sed 's/\/\*//' | sed 's/\*\///' > LICENSE | |
scons platform=x11 | |
} | |
package() { | |
if [ $CARCH -eq "x86_64" ] | |
then | |
export arch="64" | |
else | |
export arch="32" | |
fi | |
install -Dm644 godot.desktop "${pkgdir}"/usr/share/applications/godot.desktop | |
install -Dm644 icon.png "${pkgdir}"/usr/share/pixmaps/godot.png | |
cd "${srcdir}"/${_pkgname} | |
install -D -m755 bin/${_pkgname}.x11.tools.${arch} "${pkgdir}"/usr/bin/godot | |
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/godot-git/LICENSE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment