summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24bb4852cdd928a85406a0fa917ef67453ffbfc9 (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 at gmail dot com>
pkgname=emptyclip-git
pkgver=3f0f300
pkgrel=1
pkgdesc="A top-down shooter RPG"
arch=('i686' 'x86_64')
url="https://empty-clip.gitlab.io"
license=('GPL3')
depends=('gcc-libs' 'sdl2' 'sdl2_image' 'openal' 'libvorbis' 'libogg' 'freetype2' 'sqlite' 'zlib')
conflicts=('emptyclip')
makedepends=('cmake')
source=("${pkgname}::git+https://gitlab.com/empty-clip/code.git#branch=dev")
sha256sums=('SKIP')

pkgver() {
	cd "$pkgname"
	git rev-parse --short HEAD
}

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
}