Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2013
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.39 KB | None | 0 0
  1. # Maintainer: Thiago Kenji Okada <thiago DOT mast3r AT gmail DOT com>
  2. # Based on ppsspp-git PKGBUILD from  Clement Guerin <geecko.dev@free.fr>
  3. # and with Qt build instructions from here:
  4. # https://github.com/hrydgard/ppsspp/issues/4449
  5.  
  6. pkgname=ppsspp-qt-git
  7. pkgver=v0.9.5.r584.g16509ba
  8. pkgrel=1
  9. pkgdesc="A PSP emulator for Android, Windows, Mac, and Linux, written in C++ \
  10.    with Qt UI."
  11. arch=('i686' 'x86_64')
  12. url="http://www.ppsspp.org/"
  13. license=('GPL2')
  14. depends=('qt4' 'sdl')
  15. makedepends=('git' 'gcc')
  16. optdepends=()
  17. provides=('ppsspp')
  18. source=('ppsspp::git://github.com/hrydgard/ppsspp.git#branch=master'
  19. 'ppsspp.desktop')
  20. md5sums=('SKIP'
  21. '7639cf40707503cfab0c51e566e92ad1')
  22.  
  23. pkgver() {
  24.     cd "$srcdir/ppsspp"
  25.     git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
  26. }
  27.  
  28. build() {
  29.     cd $srcdir/ppsspp
  30.  
  31.     git submodule update --init
  32.  
  33.     export LDFLAGS="-lavutil -lavformat -lavcodec -lswscale -lswresample"
  34.  
  35.     mkdir build
  36.     pushd build
  37.     qmake-qt4 ../Qt/PPSSPPQt.pro
  38.     make
  39.     popd
  40. }
  41.  
  42. package() {
  43.     cd $pkgdir
  44.  
  45.     install -Dm755 $srcdir/ppsspp/build/PPSSPPQt \
  46.         $pkgdir/usr/bin/PPSSPPQt
  47.     install -Dm644 $srcdir/ppsspp/assets/icon.svg \
  48.         $pkgdir/usr/share/pixmaps/ppsspp.svg
  49.     install -Dm644 $srcdir/ppsspp.desktop \
  50.         $pkgdir/usr/share/applications/ppsspp.desktop
  51. }
  52.  
  53. # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement