summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 157b38b4f25b56294cf1c7ceb80294a6b4dd8a65 (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
# Maintainer: Josh Mandle <difarem@gmail.com>

pkgname=smw-git
pkgver=2
pkgrel=1
pkgdesc='Super Mario multiplayer game.'
url='http://smwstuff.net/'
arch=('i686' 'x86_64')
license=('GPL')
install=$pkgname.install
depends=('sdl_image' 'sdl_mixer' 'sdl' 'zlib')
makedepends=('git' 'cmake')
provides=('smw')
conflicts=('smw-bin')
source=('git+https://github.com/mmatyas/supermariowar.git')

sha256sums=('SKIP')

prepare() {
#	cp $srcdir/supermariowar
	cd -- "$srcdir/supermariowar"
	git submodule update --init
	[[ -d build ]] || mkdir build 
}

build() {
	cd -- "$srcdir/supermariowar/build/"
	cmake .. -DCMAKE_INSTALL_PREFIX:path="${pkgdir}/usr/" -DSMW_BINDIR:path="${pkgdir}/usr/bin" -DSMW_DATADIR:path="${pkgdir}/var/lib/smw" -DSMW_DOCDIR:path="${pkgdir}/usr/share/doc/smw/"
	make -j4 # -jN = build on N thread
}

package() {
	cd -- "$srcdir/supermariowar/build"
	make install
}