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

makepkg

By: willianholtz on Jul 19th, 2012  |  syntax: C  |  size: 1.45 KB  |  views: 121  |  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: Eugene Yudin aka Infy <Eugene dot Yudin at gmail dot com>
  2. # Thanks to lucak3, armitage, kazuo
  3. # Edited by: Willian Holtz
  4. # Use for openGL cards.
  5. pkgname=pcsxr-svn
  6. pkgver=73194
  7. pkgrel=1
  8. pkgdesc="A Sony PlayStation emulator based on the PCSX-df Project"
  9. arch=('i686' 'x86_64')
  10. url="http://pcsxr.codeplex.com/"
  11. license=('GPL')
  12. depends=('libcdio' 'libgl' 'libglade' 'libxtst' 'libxv' 'sdl')
  13. makedepends=('subversion' 'nasm' 'intltool' 'mesa')
  14. provides=('pcsx')
  15. conflicts=('pcsx' 'pcsx-df' 'pcsxr' 'pcsxr-alsa')
  16. replaces=('pcsxr-alsa-svn')
  17. options=(!libtool)
  18. install=pcsxr.install
  19.  
  20. if [ "$CARCH" == "x86_64" ]
  21. then
  22.   depends=('libcdio' 'libgl' 'libglade' 'libxtst' 'libxv' 'sdl')
  23.   makedepends=('subversion' 'nasm' 'intltool')
  24. fi
  25.  
  26. _svntrunk=https://pcsxr.svn.codeplex.com/svn/pcsxr
  27. _svnmod=pcsxr
  28.  
  29. build() {
  30.   cd "$srcdir"
  31.  
  32.   if [ -d $_svnmod/.svn ]; then
  33.     (cd $_svnmod && svn up -r ${pkgver})
  34.   else
  35.     svn co $_svntrunk --config-dir ./ -r ${pkgver} $_svnmod
  36.   fi
  37.  
  38.   msg "SVN checkout done or server timeout"
  39.   msg "Starting make..."
  40.  
  41.   rm -rf "$srcdir/$_svnmod-build"
  42.   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  43.   cd "$srcdir/$_svnmod-build"
  44.  
  45.   ./autogen.sh
  46.  
  47.   if [ "$CARCH" == "x86_64" ]
  48.   then
  49.     ./configure --prefix=/usr --enable-libcdio --enable-opengl
  50.   else
  51.     ./configure --prefix=/usr --enable-libcdio
  52.   fi
  53.  
  54.   make
  55. }
  56.  
  57. package() {
  58.   cd "$srcdir/$_svnmod-build"
  59.   make DESTDIR="$pkgdir/" install
  60. }