blob: 1afbecb0747a374af11e9abad0a1ed6853c7cde7 (
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
|
# Maintainer: Vignesh <vikits@gmail.com>
pkgname=oblige-obsidian-unstable # '-bzr', '-git', '-hg' or '-svn'
pkgver=v21.20231003 # Obsidian v21
pkgrel=1
pkgdesc="Random level generator for classic Doom, also a fork of OBLIGE. Stable branch."
arch=('any')
url="https://obsidian-level-maker.github.io"
license=('GPL')
groups=()
depends=('libx11' 'fltk')
makedepends=('git' 'cmake')
provides=("oblige-obsidian")
conflicts=("oblige-obsidian")
replaces=()
backup=()
options=()
install=
source=('Obsidian::git+https://github.com/obsidian-level-maker/Obsidian#branch=unstable')
noextract=()
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/Obsidian"
tag="$(git describe --tags --abbrev=0)"
ver="$(echo $tag | cut -d'-' -f2)"
stamp="$(echo $tag | cut -d'-' -f3)"
echo "$ver.$stamp"
}
build() {
cd "$srcdir/Obsidian"
cmake -B build -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" -DCMAKE_BUILD_TYPE=Release -DOBSIDIAN_INSTALL_STANDARD_LOCATION=ON
cmake --build build
}
package() {
cd "$srcdir/Obsidian"
cmake --install build
}
|