Advertisement
Guest User

wxLauncher PKGBUILD

a guest
Mar 29th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.40 KB | None | 0 0
  1. # Maintainer: Joe Davison <joedavison.davison@gmail.com>
  2.  
  3. pkgname=wxlauncher
  4. _pkgtar=wxLauncher
  5. pkgver=0.9.1
  6. pkgrel=3
  7.  
  8. source=("http://wxlauncher.googlecode.com/files/${_pkgtar}-$pkgver.tar.gz"
  9.         "issue_93.patch"
  10.         "wxlauncher_homedir.patch")
  11. md5sums=('59fd3fab22cfe98973c75a0fea91b5fd'
  12.          '8f7d02a4060ed5c64af14494d2e74d7c'
  13.          '828542570e508e069489f32a70432974')
  14.  
  15. pkgdesc="wxLauncher is a cross-platform launcher for the FreeSpace 2 Open engine"
  16. url="http://www.hard-light.net/forums/index.php?topic=67950.0"
  17. arch=(i686 x86_64)
  18. license=(GPL2)
  19.  
  20. depends=(wxpython python2 python2-markdown openal)
  21. optdepends=('fs2_open: Well that is what this launcher is for')
  22. makedepends=(cmake)
  23.  
  24.  
  25. build() {
  26.     # prepare environment
  27.     cd $srcdir/${_pkgtar}-$pkgver
  28.  
  29.     # work around Issue 91 (http://code.google.com/p/wxlauncher/issues/detail?id=91)
  30.     mv CMakeLists.txt CMakeLists.txt.bak
  31.     sed '/\/usr\/local\/share/ c\\set\(RESOURCES_PATH \/usr\/share\/wxlauncher\/\)' CMakeLists.txt.bak > CMakeLists.txt
  32.  
  33.     # patch for issue 93
  34.     patch -Np1 < $srcdir/issue_93.patch
  35.     patch -Np3 < $srcdir/wxlauncher_homedir.patch
  36.  
  37.         if [ ! -d build ]; then
  38.             mkdir build
  39.         fi
  40.  
  41.     cd build/
  42.    
  43.     # commence build       
  44.     cmake -DPYTHON_EXECUTABLE=python2 -DUSE_OPENAL=1 -DCMAKE_INSTALL_PREFIX=$pkgdir/usr ../
  45.     make
  46.        
  47.     # doing this in package() caused weird errors, would like to change
  48.     make install
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement