summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a19580a58e52a6e28cc4de1d64f301210a9498f6 (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
# Package build for planeworld from git (https://github.com/planeworld/planeworld)
# Maintainer: Sven Klomp <mail at klomp dot eu>

pkgdesc='2D physics simulation'
_gitname=('planeworld')
pkgname=('planeworld-git')
provides=('planeworld=0.0.1')
pkgver=0.651.53f4a95
pkgrel=1
arch=('i686' 'x86_64')
license=('GPL')
url="http://planeworld.org/"
depends=('sfml' 'lua' 'libnoise2d' 'eigen' 'glm')
makedepends=('gcc-libs' 'git' 'cmake' 'sfml' 'lua' 'libnoise2d' 'eigen' 'glm')
source=("git+https://github.com/planeworld/planeworld.git")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir"/${_gitname}
	echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}


prepare() {
	cd "${srcdir}/${_gitname}"
}

build() {
	cd "${srcdir}/${_gitname}"
	
	if [ ! -d "${srcdir}/build" ]; then
		mkdir -p "${srcdir}/build"
	fi

	cd "${srcdir}/build"

	cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr "../${_gitname}"

	make
	
}

package() {
	cd "${srcdir}/build"
	make DESTDIR="${pkgdir}/" install	

}