summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33e2c2c8d9eb2f1959dab0764a2fbd7170b77a18 (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: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG

pkgname=openraider-git
pkgver=0.1.3.r71.gc6d13da
pkgrel=1
pkgdesc="Open Source Tomb Raider Engine (development version)"
arch=('i686' 'x86_64')
url="https://github.com/xythobuz/OpenRaider/"
license=('GPL3')
conflicts=("${pkgname%-*}")
provides=("${pkgname%-*}=${pkgver%.r*}")
makedepends=('git')
depends=('sdl2_ttf' 'freealut')
install="${pkgname%-*}.install"
source=(${pkgname%-*}::"git+https://github.com/xythobuz/OpenRaider.git")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-*}
  git describe --tags --long | sed 's/-20[0-9]*-/.r/;s/-/./'
}

prepare() {
  cd ${pkgname%-*}

  rm -rf build
  mkdir build
}

build () {
  cd ${pkgname%-*}/build

  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package () {
  make -C ${pkgname%-*}/build DESTDIR="$pkgdir/" install
}