summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1a1cc9b9330b4f96ecaa0cf441aa93db60ed675 (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
# -*- shell-script -*-
# Maintainer:  Marco Schroeder <marco.schroeder96 at gmail dot com>
# Contributor: Fernando Carmona Varo <ferkiwi @t gmail dot com>
pkgname=keeperrl-git
pkgver=r5155
pkgrel=1
pkgdesc="Dungeon Keeper and Dwarf Fortress inspired dungeon simulator built on top of roguelike mechanics."
arch=('i686' 'x86_64')
url="http://keeperrl.com/"
groups=()
license=('GPL')
conflicts=('keeperrl')
#depends=('sfml' 'freeglut' 'angelscript')
depends=('sfml' 'freeglut' 'sdl2_image')
makedepends=('git' 'ctags' 'boost' 'clang')
checkdepends=()
optdepends=()
backup=()
options=()
install=
changelog=
source=("$pkgname"::'git://github.com/miki151/keeperrl#branch=master')
noextract=()
md5sums=('SKIP')

pkgver() {
    cd ${srcdir}/${pkgname}
    printf "r%s" $(git rev-list --count HEAD)
}

build() {
  cd "${srcdir}/${pkgname}"
  make NO_STEAMWORKS=true RELEASE=true ENABLE_LOCAL_USER_DIR=true DATA_DIR=/usr/share/keeperrl
}

package() {
  cd "${srcdir}/${pkgname}"

  install -Dm755 keeper "$pkgdir/usr/bin/keeperrl"
  install -Dm644 appconfig.txt -t "$pkgdir/usr/share/keeperrl"
  cp -a data* "$pkgdir/usr/share/keeperrl/"
}