SHARE
TWEET

solarus pkgbuild

a guest Dec 30th, 2011 32 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Fernando Carmona Varo <ferkiwi@gmail.com>
  2. pkgname=solarus-git
  3. pkgver=20111230
  4. pkgrel=1
  5. pkgdesc="An open-source Zelda-like game engine. Includes the game quests zsdx and zsxd."
  6. arch=('i686' 'x86_64')
  7. url="http://www.solarus-engine.org/"
  8. license=('GPL3')
  9. depends=('sdl' 'sdl_image' 'sdl_ttf' 'lua' 'physfs' 'openal' 'libmodplug' 'libvorbis')
  10. makedepends=('git' 'cmake' 'zip' )
  11. provides=('solarus-engine' 'zsdx' 'zsxd')
  12. conflicts=('solarus')
  13. source=()
  14. md5sums=()
  15.  
  16. _gitroot="git://github.com/christopho/solarus.git"
  17. _gitname="solarus"
  18.  
  19. build() {
  20.  
  21.   cd "$srcdir"
  22.   msg "Connecting to GIT server...."
  23.  
  24.   if [ -d $_gitname ] ; then
  25.     cd $_gitname && git pull origin
  26.     msg "The local files are updated."
  27.   else
  28.     git clone $_gitroot $_gitname
  29.   fi
  30.  
  31.   #msg "GIT checkout done or server timeout"
  32.   #msg "Starting make..."
  33.  
  34.   rm -rf "$srcdir/$_gitname-build"
  35.   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  36.   cd "$srcdir/$_gitname-build"
  37.  
  38.   ####
  39.   # # Switch quest to english language if available
  40.   # for quest in quests/*
  41.   # do
  42.   #   if [ -d $quest ]
  43.   #   then
  44.   #     cp -r ${quest}/data/languages/en/* ${quest}/data/
  45.   #   fi
  46.   # done
  47.  
  48.   cmake .
  49.   make
  50.  
  51.   for quest in quests/*
  52.   do
  53.     if [ -d ${quest} ]
  54.     then
  55.       cd ${quest}
  56.       cmake .
  57.       make
  58.       cd -
  59.     fi
  60.   done
  61. }
  62.  
  63. package(){
  64.    cd "$srcdir/$_gitname-build"
  65.    make DESTDIR="$pkgdir" PREFIX=/usr  install
  66.  
  67.   for quest in quests/*
  68.   do
  69.     if [ -d ${quest} ]
  70.     then
  71.       cd ${quest}
  72.       make DESTDIR="$pkgdir" PREFIX=/usr  install
  73.       cd -
  74.     fi
  75.   done
  76. }
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