summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da1c36bb6cfc9b78bca1e0e184fbd7840f1a5703 (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
_pkgname="overgrowth"
pkgname="overgrowth-game-git"
pkgver=r159.594a2a4f
pkgrel=2
pkgdesc="Open Source codebase of the game Overgrowth by Wolfire Games LLC"
arch=("x86_64")
url='https://github.com/WolfireGames/overgrowth'
license=('Apache-2.0')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
makedepends=('cmake' 'gtk2')
depends=('sdl2_net')
source=("git+https://github.com/WolfireGames/overgrowth.git")
sha256sums=('SKIP')

__path_to_installed_game="/home/user/overgrowth_game/"

pkgver() {
	cd ${_pkgname}
    	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"	
}

build() {
    	cd "${srcdir}/${_pkgname}"
    	[[ -d build ]] && rm -rf build
    	mkdir build && cd build

	cmake ../Projects -DAUX_DATA="${__path_to_installed_game}"
    	make
}

package() {
    	cd "${srcdir}/${_pkgname}/build"
    	install -d ${pkgdir}/usr/share/licenses/${pkgname}
    	make DESTDIR="${pkgdir}" install
}