summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 178d6ed42f544f3c9e56ec954d4cbc022f1f32ff (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
#Maintainer: Frederic Bezies <fredbezies at gmail dot com>
#Contributor: Mike Swanson

pkgname=woof-doom-git
_pkgname=woof
pkgver=14.5.0.r304.58dcc9da
pkgrel=1
pkgdesc="Doom port remaining faithful to Lee Killough’s MBF on DOS"
arch=("x86_64")
url="https://github.com/fabiangreffrath/woof"
license=('GPL-2.0-or-later')
depends=('hicolor-icon-theme' 'sdl2_net' 'openal' 'libsndfile' 'libebur128' 'cjson')
makedepends=('cmake' 'git' 'python')
optdepends=('fluidsynth' 'libxmp')
conflicts=('woof-doom')
source=(woof::git+"${url}".git)
sha512sums=('SKIP')
options=(!debug)

pkgver() {
	cd "$srcdir/${_pkgname%-git}"
	printf "%s" "$(git describe --tags --long | sed 's/^woof_//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}

prepare() {
	mkdir -p "$srcdir/${_pkgname%-git}-build"
	cd "$srcdir/${_pkgname%-git}-build"
	cmake -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/${_pkgname%-git}"
}

build() {
	cd "$srcdir/${_pkgname%-git}-build"
	make
}

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