summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a32f73a29b90cd7d6913987b14af263ec31ef759 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Sean Anderson <seanga2@gmail.com>
_srcname=crawl
pkgname=crawl-tiles
pkgver=0.21.1
pkgrel=1
epoch=
pkgdesc="Dungeon Crawl Stone Soup with graphical tiles and sound support"
arch=('i686' 'x86_64')
url="https://crawl.develz.org/"
license=('GPL')
depends=(
	'sdl2_image'
	'sdl2_mixer'
	'freetype2'
	'lua51'
	'sqlite'
	'glu'
)
makedepends=()
checkdepends=()
optdepends=()
provides=('crawl')
conflicts=('crawl')
backup=()
options=()
source=("https://github.com/crawl/$_srcname/archive/$pkgver.tar.gz")
md5sums=('634808232f0811c7f16594a8c35d8b72')

prepare() {
	cd "$_srcname-$pkgver/crawl-ref/source"
	
	echo $_makeflags
	echo $pkgver > util/release_ver
}

build() {
	cd "$_srcname-$pkgver/crawl-ref/source"

	make \
		prefix=/usr \
		bin_prefix=bin \
		DESTDIR=$pkgdir \
		SAVEDIR='~/.crawl' \
		LUA_PACKAGE=lua51 \
		TILES=y \
		SOUND=y
}

# Tests cannot be run without a debug build.
# To enable them, add the debug target to build()
#check() {
#	cd "$_srcname-$pkgver/crawl-ref/source"
#	make -k test \
#		prefix=/usr \
#		bin_prefix=bin \
#		DESTDIR=$pkgdir \
#		SAVEDIR='~/.crawl' \
#		LUA_PACKAGE=lua51 \
#		TILES=y
#}

package() {
	cd "$_srcname-$pkgver/crawl-ref/source"

	make install \
		prefix=/usr \
		bin_prefix=bin \
		DESTDIR=$pkgdir \
		SAVEDIR='~/.crawl' \
		LUA_PACKAGE=lua51 \
		TILES=y \
		SOUND=y
}