summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3b4a296fda8ad0a90361f4fdee208ee84a103e1 (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
57
# Maintainer: Michael Mansell <michael.mansell@gmail.com>
# Contributor: Joe Davison <joedavison.davison@gmail.com>

pkgname=wxlauncher
_pkgtar=wxLauncher
pkgver=0.10.1
pkgrel=2

source=("https://github.com/wxLauncher/wxlauncher/archive/release-${pkgver}.zip"
	"wxlauncher.png"
	"wxlauncher.desktop")

sha256sums=('aaf721fb44eb23362da92e243ea62e9dc6d9ba80064579d66d9c411f3430327e'
            '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' 'sdl2')
optdepends=('fs2_open')
makedepends=(cmake)

#prepare() {
#}


build() {
	cd "$srcdir/${_pkgtar}-release-$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/${_pkgtar}-release-$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"
}