summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d0204a2c48779b62913949ab1db2c3bf2fbddf6 (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
44
45
46
47
48
49
50
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: Kyle Keen <keenerd@gmail.com>
# Contributor: Yangtse Su <yangtsesu@gmail.com>
# Contributor: Fernando Carmona Varo <ferkiwi @t gmail dot com>
# Contributor: Klemen KoŇ°ir <klemen913@gmail.com>

pkgname=cataclysm-dda-tiles
pkgver=0.C.2019.01.02
_pkgver=0.C
pkgrel=1
pkgdesc="A post-apocalyptic roguelike,tiles only"
url="http://en.cataclysmdda.com/"
arch=('x86_64')
license=("CCPL:by-sa")
conflicts=('cataclysm-dda')
depends=('ncurses' 'lua')
makedepends=('sdl2_image' 'sdl2_ttf' 'sdl2_mixer' 'freetype2' 'git' 'gettext')
optdepends=('sdl2_image: for tiles'
            'sdl2_ttf: for tiles'
            'freetype2: for tiles'
            'sdl2_mixer: for tiles')
conflicts=('cataclysm-dda' 'cataclysm-dda-ncurses' 'cataclysm-dda-sdl-git')
source=('https://github.com/CleverRaven/Cataclysm-DDA/archive/master.zip')
md5sums=('SKIP')

pkgver() {
  cd "Cataclysm-DDA-master"
  echo "${_pkgver}.$(date +%Y.%m.%d)"
}

build() {
  cd "Cataclysm-DDA-master"

  make PREFIX=/usr RELEASE=1 LOCALIZE=1 USE_XDG_DIR=1 LUA=1 TILES=1 SOUND=1 LANGUAGES=all
}

package() {
  cd "Cataclysm-DDA-master"

  make PREFIX="$pkgdir/usr" RELEASE=1 LOCALIZE=1 USE_XDG_DIR=1 LUA=1 TILES=1 SOUND=1 LANGUAGES=all install

  #The doc goes in /usr/share/doc  
  install -dm755 "$pkgdir/usr/share/doc/cataclysm-dda"
  unlink doc/JSON_LOADING_ORDER.md
  cp -T data/json/LOADING_ORDER.md doc/JSON_LOADING_ORDER.md
  cp -r *.txt doc/* "$pkgdir/usr/share/doc/cataclysm-dda/"
  
  #License file
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}