Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

[PKGBUILD] ppsspp-git

By: a guest on Apr 6th, 2013  |  syntax: Bash  |  size: 1.26 KB  |  views: 235  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Clement Guerin <geecko.dev@free.fr>
  2. # Contributor: Thiago Kenji Okada <thiago DOT mast3r AT gmail DOT com>
  3. pkgname=ppsspp-git
  4. pkgver=v0.8pre
  5. pkgrel=1
  6. pkgdesc="A PSP emulator for Android, Windows, Mac, and Linux, written in C++."
  7. arch=('i686' 'x86_64')
  8. url="http://www.ppsspp.org/"
  9. license=('GPL2')
  10. depends=('zlib' 'sdl')
  11. makedepends=('git' 'cmake' 'gcc')
  12. optdepends=()
  13. provides=('ppsspp')
  14. source=('ppsspp::git://github.com/hrydgard/ppsspp.git#branch=master')
  15. md5sums=('SKIP')
  16.  
  17. pkgver() {
  18.         cd $srcdir/ppsspp
  19.         git describe --always | sed 's|-|.|g'
  20. }
  21.  
  22. build() {
  23.         cd $srcdir/ppsspp
  24.  
  25.         git submodule update --init
  26.  
  27.         export LDFLAGS=""
  28.  
  29.         mkdir build
  30.         pushd build
  31.         cmake ..
  32.         make
  33.         popd
  34. }
  35.  
  36. package() {
  37.         cd $pkgdir
  38.  
  39.         mkdir -p usr/bin
  40.         mkdir -p usr/share/ppsspp
  41.  
  42.         cp $srcdir/ppsspp/build/PPSSPPHeadless ./usr/share/ppsspp
  43.         cp $srcdir/ppsspp/build/PPSSPPSDL ./usr/share/ppsspp
  44.         cp -r $srcdir/ppsspp/build/assets/ ./usr/share/ppsspp
  45.  
  46.         cd ./usr/bin/
  47.  
  48.         echo '#!/bin/bash' > PPSSPPSDL
  49.         echo 'cd /usr/share/ppsspp' >> PPSSPPSDL
  50.         echo './PPSSPPSDL' >> PPSSPPSDL
  51.         chmod +x PPSSPPSDL
  52.  
  53.         echo '#!/bin/bash' > PPSSPPHeadless
  54.         echo 'cd /usr/share/ppsspp' >> PPSSPPHeadless
  55.         echo './PPSSPPHeadless' >> PPSSPPHeadless
  56.         chmod +x PPSSPPHeadless
  57. }