blob: 5b11c4560037731754d44162a230584534832010 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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"
}
|