summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b497c0564023dd3ddb0b212f3d60829893d7de58 (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
# Maintainer: Baal <weiss.sebastian@gmx.net

pkgname=theforceengine
pkgver=1.09.000
pkgrel=1
pkgdesc="Modern \"Jedi Engine\" replacement supporting Dark Forces, Outlaws and the mods"
arch=('x86_64')
url="https://theforceengine.github.io/"
license=('GPL2')
depends=("libgl" "sdl2" "devil" "glew" "rtaudio" "rtmidi" "hicolor-icon-theme")
makedepends=("cmake" "ninja" "git")
optdepends=()
_tag=3b216b52286bff7176b131cfa692475f2aae09eb
source=("TheForceEngine::git+https://github.com/luciusDXL/TheForceEngine.git#tag=$_tag")
sha256sums=(SKIP)

pkgver() {
  cd TheForceEngine
  git describe --tags | sed 's/^v//'
}

build() {
  cd TheForceEngine
  mkdir build
  cd build
  cmake -S .. \
    -G Ninja\
    -DCMAKE_INSTALL_PREFIX=/usr\
    -DCMAKE_BUILD_TYPE=Release
  ninja
}

package() {
  cd TheForceEngine/build
  DESTDIR="$pkgdir" ninja install
}