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

vba-m-gtk-svn

By: Unknown47 on Jul 8th, 2011  |  syntax: None  |  size: 1.24 KB  |  views: 295  |  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. # Contributor: Zephyr
  2. pkgname=vba-m-gtk-svn
  3. pkgver=1029
  4. pkgrel=2
  5. pkgdesc="Gameboy Advance Emulator combining features of all VBA forks - GTK GUI"
  6. arch=(i686 x86_64)
  7. url="http://vba-m.ngemu.com"
  8. license=('GPL')
  9. groups=()
  10. depends=('gtkmm' 'sdl' 'glibmm' 'libpng' 'zlib' 'cairo' 'mesa' 'gtkglext' 'gtkglextmm' 'libxv' 'hicolor-icon-theme')
  11. makedepends=('cmake' 'pkgconfig' 'nasm' 'subversion')
  12. source=('gvbam-linking.patch')
  13. install='vba-m-gtk.install'
  14. md5sums=('9332539870bedf4c7488c5196e90b0c6')
  15.  
  16. _svntrunk=https://vbam.svn.sourceforge.net/svnroot/vbam/trunk
  17. _svnmod=vbam
  18. _svndep=https://vbam.svn.sourceforge.net/svnroot/vbam/dependencies
  19.  
  20. build() {
  21.    cd $srcdir
  22.    if [ -d $_svnmod/.svn ]; then
  23.      (cd $_svnmod && svn up -r $pkgver)
  24.    else
  25.      svn co $_svntrunk --config-dir ./ $_svnmod
  26.      svn co $_svndep --config-dir ./
  27.    fi
  28.          
  29.    msg "SVN checkout done or server timeout"
  30.    msg "Starting make..."
  31.            
  32.   cp -r $_svnmod $_svnmod-build
  33.   cp -r dependencies/fex $_svnmod-build/
  34.   cd $_svnmod-build
  35.  
  36.   patch -Np1 -i $srcdir/gvbam-linking.patch || return 1
  37.  
  38.   cmake . -DCMAKE_INSTALL_PREFIX=/usr -DDATA_INSTALL_DIR:PATH=share/vbam/gtk -DENABLE_WX=OFF
  39.   make || return 1
  40.   make DESTDIR=$pkgdir install
  41. }