summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: de8b741830cec33cd77a971e59c2336bcb0be5ba (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: jazztickets <jazztickets@gmail.com>
pkgname=irrlamb-git
pkgver=r652
pkgrel=1
pkgdesc="A 3D game that probably involves a lot of physics and frustrating gameplay."
arch=('i686' 'x86_64')
url="https://irrlamb.gitlab.io"
license=('GPL3')
depends=('gcc-libs' 'freetype2' 'sqlite' 'openal' 'libvorbis' 'libogg' 'libjpeg-turbo' 'libpng' 'zlib')
conflicts=('irrlamb')
makedepends=('cmake')
source=("${pkgname}::git+https://gitlab.com/irrlamb/code.git")
sha256sums=('SKIP')

pkgver() {
	cd "$pkgname"
	git log --oneline | wc -l | sed 's/^/r/'
}

prepare() {
	cd "$srcdir/$pkgname"
	git submodule init
	git submodule update
}

build() {
	cd "$srcdir/$pkgname"
	cmake -DCMAKE_INSTALL_PREFIX=/usr .
	make
}

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