diff options
author | Michael Mansell | 2015-06-28 19:27:40 -0400 |
---|---|---|
committer | Michael Mansell | 2015-06-28 19:27:40 -0400 |
commit | 28c974985c66177123842355002b8b0bd0fc7d43 (patch) | |
tree | 535b358947ec70787f6fba8d3f4696a9dc4d2e21 /PKGBUILD | |
download | aur-28c974985c66177123842355002b8b0bd0fc7d43.tar.gz |
Initial Import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5b11c4560037 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Michael Mansell <michael.mansell@gmail.com> +# Contributor: Joe Davison <joedavison.davison@gmail.com> + +pkgname=wxlauncher +_pkgtar=wxlauncher +pkgver=0.9.6 +pkgrel=1 + +source=("https://github.com/wxLauncher/wxlauncher/archive/revision-0.9.6.zip" + "wxlauncher.png" + "wxlauncher.desktop") +sha256sums=('a39051eff51462bbb5610758519cd7ba74723e73e5716a4913cee62ad39917a0' + 'e3bf9cbe7c61378026331a21313fccd891b051e949448715625d1cfd3ae72576' + '8de688171c12fdf273ece4f33177fd773395204c81cf212f8c4293f0ddd16582') + +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) +# change below if you want to modify the resources intall directory. The default installs it along side fs2_open resources. +resourcesdir=/opt/fs2_open/wxlauncher + +depends=('wxpython' 'python2' 'python2-markdown' 'openal') +optdepends=('fs2_open') +makedepends=(cmake) + +#prepare() { +#} + + +build() { + cd "$srcdir/${_pkgtar}-revision-$pkgver" + + if [ ! -d build ]; then + mkdir build + fi + + cd build/ + + # commence build + + #cmake -DPYTHON_EXECUTABLE=python2 -DUSE_OPENAL=1 -DRESOURCES_PATH=$resourcesdir -DCMAKE_INSTALL_PREFIX=/usr ../ + cmake -DPYTHON_EXECUTABLE=python2 -DUSE_OPENAL=1 -DRESOURCES_PATH=$resourcesdir -DCMAKE_INSTALL_PREFIX=/usr ../ -DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config' -DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc' + make + + +} + +package() { + cd "$srcdir/$pkgname-revision-$pkgver/build" + make DESTDIR="$pkgdir/" install + # need to install the .desktop file and icon + cd "$srcdir" + install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" + install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" +} |