SHARE
TWEET

Untitled

a guest Nov 3rd, 2017 152 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Cristian Porras <porrascristian@gmail.com>
  2. # Contributor: Matthew Bentley <matthew@mtbentley.us>
  3.  
  4. _pkgname=godot
  5. pkgname=${_pkgname}-mono-git
  6. pkgver=3.0.r10554.c88030275
  7. pkgrel=1
  8. pkgdesc="Godot Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine."
  9. url="http://www.godotengine.org"
  10. license=('MIT')
  11. arch=('i686' 'x86_64')
  12. makedepends=('git' 'scons' 'pulseaudio' 'clang')                                                                                                                                                      
  13. depends=('glu' 'libxcursor' 'libxinerama' 'alsa-lib' 'freetype2' 'mesa' 'mono>=5.2.0' 'msbuild-15-bin')
  14. optdepends=()
  15. conflicts=("godot")
  16. provides=("godot")
  17. _arch=''
  18. if test "$CARCH" == x86_64; then
  19.   _arch=('64')
  20. else
  21.   _arch=('32')
  22. fi
  23.  
  24. source=(
  25.     "git://github.com/godotengine/${_pkgname}.git#branch=master"
  26.     godot.desktop
  27.     icon.png
  28. )
  29. sha256sums=(
  30.     'SKIP'
  31.     'd2f5ae30b8c0c3fd8a20a451d34e9e9d0ba1b60a39b1f68484a9a74227c83822'
  32.     'b6bb8e42625414303cf7608f08fe63bd3267486bf7a96586ebab05ade5189785'
  33. )
  34.  
  35.  
  36. pkgver() {
  37.     cd "${srcdir}/${_pkgname}"
  38.     _major=$(cat version.py|grep "major" | sed 's/major = //')
  39.     _minor=$(cat version.py|grep "minor" | sed 's/minor = //')
  40.     _revision=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
  41.     echo "${_major}.${_minor}.${_revision}"
  42.    
  43. }
  44.  
  45. build() {
  46.     cd "${srcdir}"/${_pkgname}
  47.     sed -n '/\/* Copyright/,/IN THE SOFTWARE./p' main/main.cpp | sed 's/\/\*//' | sed 's/\*\///' > LICENSE
  48.     scons platform=x11 target=release_debug CXX=clang++ -j$(nproc) tools=yes module_mono_enabled=yes mono_glue=no
  49.     bin/godot.x11.opt.tools.${_arch}.llvm.mono --generate-mono-glue modules/mono/glue
  50.     scons platform=x11 target=release_debug CXX=clang++ -j$(nproc) module_mono_enabled=yes
  51. }
  52.  
  53. package() {
  54.  
  55.     cd "${srcdir}"    
  56.  
  57.     install -Dm644 godot.desktop "${pkgdir}"/usr/share/applications/godot.desktop
  58.     install -Dm644 icon.png "${pkgdir}"/usr/share/pixmaps/godot.png
  59.    
  60.     cd "${srcdir}"/${_pkgname}
  61.  
  62.     install -D -m755 bin/godot.x11.opt.tools.${_arch}.llvm.mono "${pkgdir}"/usr/bin/godot
  63.     install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/godot-mono-git/LICENSE
  64. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top