Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 2nd, 2013  |  syntax: Bash  |  size: 1.30 KB  |  views: 55  |  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: Joris Steyn <jorissteyn@gmail.com>
  2. # Contributor:  David Kaylor <dpkaylor@gmail.com>
  3. # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
  4.  
  5. pkgname=vegastrike
  6. pkgver=0.5.1.r1
  7. pkgrel=2
  8. pkgdesc="3D action-space-sim allowing player to trade and bounty hunt in a vast universe"
  9. arch=('i686' 'x86_64')
  10. url="http://vegastrike.sourceforge.net/"
  11. license=('GPL')
  12. depends=('gcc-libs' 'freetype2' 'freeglut' 'gtk2' 'openal' 'sdl' 'python2' 'libvorbis' 'openal' 'vegastrike-data')
  13. source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-src-${pkgver}.tar.bz2)
  14. md5sums=('6f3f2f1ff56a29710b7d0fdd8c3a255f')
  15. sha1sums=('6314a0fc05cf66053e20272916976c0c16dcf048')
  16.  
  17. build() {
  18.   cd ${srcdir}/$pkgname-src-$pkgver
  19.  
  20.   export CXXFLAGS="$CXXFLAGS -fpermissive"
  21.  
  22.   ./configure \
  23.      --prefix=/usr \
  24.      --disable-ffmpeg \
  25.      --disable-boost \
  26.      --with-boost=1.45 \
  27.      --with-data-dir=/usr/share/vegastrike
  28.  
  29.   make
  30. }
  31.  
  32. package() {
  33.   cd ${srcdir}/$pkgname-src-$pkgver
  34.  
  35.   #cd build
  36.   make DESTDIR=${pkgdir} install
  37.  
  38.   # move objconv dir to right path and avoiding conflict with mysql's 'replace' file
  39.   install -d ${pkgdir}/usr/share/$pkgname
  40.   mv -f ${pkgdir}/usr/objconv ${pkgdir}/usr/share/$pkgname/objconv
  41.   mv ${pkgdir}/usr/bin/replace ${pkgdir}/usr/bin/vsreplace
  42. }
clone this paste RAW Paste Data