# Maintainer: Joe Davison pkgname=wxlauncher _pkgtar=wxLauncher pkgver=0.9.1 pkgrel=3 source=("http://wxlauncher.googlecode.com/files/${_pkgtar}-$pkgver.tar.gz" "issue_93.patch" "wxlauncher_homedir.patch") md5sums=('59fd3fab22cfe98973c75a0fea91b5fd' '8f7d02a4060ed5c64af14494d2e74d7c' '828542570e508e069489f32a70432974') pkgdesc="wxLauncher is a cross-platform launcher for the FreeSpace 2 Open engine" url="http://www.hard-light.net/forums/index.php?topic=67950.0" arch=(i686 x86_64) license=(GPL2) depends=(wxpython python2 python2-markdown openal) optdepends=('fs2_open: Well that is what this launcher is for') makedepends=(cmake) build() { # prepare environment cd $srcdir/${_pkgtar}-$pkgver # work around Issue 91 (http://code.google.com/p/wxlauncher/issues/detail?id=91) mv CMakeLists.txt CMakeLists.txt.bak sed '/\/usr\/local\/share/ c\\set\(RESOURCES_PATH \/usr\/share\/wxlauncher\/\)' CMakeLists.txt.bak > CMakeLists.txt # patch for issue 93 patch -Np1 < $srcdir/issue_93.patch patch -Np3 < $srcdir/wxlauncher_homedir.patch if [ ! -d build ]; then mkdir build fi cd build/ # commence build cmake -DPYTHON_EXECUTABLE=python2 -DUSE_OPENAL=1 -DCMAKE_INSTALL_PREFIX=$pkgdir/usr ../ make # doing this in package() caused weird errors, would like to change make install }