diff options
author | Christopher Arndt | 2018-08-14 03:15:28 +0200 |
---|---|---|
committer | Christopher Arndt | 2018-08-14 03:15:28 +0200 |
commit | abe365ad552d3b0a9c1fd1bf108efc70555d3959 (patch) | |
tree | ce2c345c46a6a7211ca73089290e50e585d0c9af | |
download | aur-abe365ad552d3b0a9c1fd1bf108efc70555d3959.tar.gz |
New package 'godot-osc-git'
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 73 |
3 files changed, 109 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2857bbab5786 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = godot-osc-git + pkgdesc = An advanced, feature packed, multi-platform 2D and 3D game engine (git version with OSC support) + pkgver = 3.1.r15659.c4e75aa63 + pkgrel = 1 + url = http://www.godotengine.org + arch = i686 + arch = x86_64 + license = MIT + makedepends = clang + makedepends = git + makedepends = scons + depends = desktop-file-utils + depends = freetype2 + depends = glu + depends = libpulse + depends = libxcursor + depends = libxinerama + depends = libxrandr + depends = mesa + depends = shared-mime-info + provides = godot + conflicts = godot + conflicts = godot-git + source = godot::git+https://github.com/godotengine/godot.git + source = gdosc::git+https://github.com/djiamnot/gdosc.git + sha256sums = SKIP + sha256sums = SKIP + +pkgname = godot-osc-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..aca903c55475 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg/ +src/ +godot/ +gdosc/ +godot-osc-git-*.tar.xz +.AURINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0c1d08763df8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,73 @@ +# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de> + +_pkgname=godot +pkgname=${_pkgname}-osc-git +pkgver=3.1.r15659.c4e75aa63 +pkgrel=1 +pkgdesc="An advanced, feature packed, multi-platform 2D and 3D game engine (git version with OSC support)" +url="http://www.godotengine.org" +license=('MIT') +arch=('i686' 'x86_64') +makedepends=('clang' 'git' 'scons') +depends=('desktop-file-utils' 'freetype2' 'glu' 'libpulse' 'libxcursor' + 'libxinerama' 'libxrandr' 'mesa' 'shared-mime-info') +conflicts=("${_pkgname}" "${_pkgname}-git") +provides=("${_pkgname}") +source=( + "${_pkgname}::git+https://github.com/godotengine/${_pkgname}.git" + 'gdosc::git+https://github.com/djiamnot/gdosc.git' +) +sha256sums=('SKIP' 'SKIP') + +if test "$CARCH" == x86_64; then + _arch=('64') +else + _arch=('32') +fi + + +pkgver() { + cd "${srcdir}/${_pkgname}" + + local _major=$(grep ^major version.py | cut -f 3 -d ' ') + local _minor=$(grep ^minor version.py | cut -f 3 -d ' ') + local _rev=$(git rev-list --count HEAD) + local _githash=$(git rev-parse --short HEAD) + echo "${_major}.${_minor}.r${_rev}.${_githash}" +} + +prepare() { + cd "${srcdir}/${_pkgname}" + + ln -sf "${srcdir}/gdosc" modules/gdosc + cd modules/gdosc + git submodule update --init +} + +build() { + cd "${srcdir}/${_pkgname}" + + scons -j$(nproc) target=release_debug platform=x11 use_llvm=yes bits=${_arch} +} + +package() { + cd "${srcdir}/${_pkgname}" + + # binary + install -D -m755 bin/godot.x11.opt.tools.${_arch}.llvm \ + "${pkgdir}/usr/bin/godot" + # man page + install -D -m755 misc/dist/linux/godot.6 -t "${pkgdir}/usr/share/man/man6" + # icon + install -Dm644 icon.png "${pkgdir}/usr/share/pixmaps/${_pkgname}.png" + # desktop menu integration + install -Dm644 misc/dist/linux/org.godotengine.Godot.desktop \ + "${pkgdir}/usr/share/applications/${_pkgname}.desktop" + # mime-info database + install -Dm644 misc/dist/linux/org.godotengine.Godot.xml \ + "$pkgdir/usr/share/mime/packages/${_pkgname}.xml" + # licenses + install -D -m644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -D -m644 modules/gdosc/LICENSE.md \ + "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-gdosc.md" +} |