summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 3091d5b77d7d6e4e3abb1a6112b2bbb1c7e6045c (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
# Maintainer: David A. Redick <david.a.redick@gmail.com>
# Contributor: Petteri Tolonen <petteri dot tolonen at gmail dot com>

# Most of this is ripped from the project's own .spec file.
# See http://git.savannah.gnu.org/cgit/freedink.git/tree/freedink.spec

pkgname=freedink
pkgver=108.4
pkgrel=3
pkgdesc='Humorous top-down adventure and role-playing game.'
arch=('i686' 'x86_64' 'mips64el')
url='https://www.gnu.org/software/freedink/'
license=('GPL3')

depends=(
	'freedink-data'
	'libzip'
	'bzip2'
	'zlib'
	'fontconfig'
	'freetype2'
	'sdl_image'
	'sdl_mixer'
	'sdl_ttf'
	'sdl_gfx'
	'sdl'
	'expat'
	'libutil-linux'
	'libpng'
	'harfbuzz'
	'glib2'
	'graphite'
	'pcre'
)

makedepends=('automake' 'autoconf' 'check' 'help2man' 'make')

# Although listed in documents; I don't see a way to enable this.
#optdepends=('timidity++: MIDI-music support')
optdepends=()

source=("https://ftp.gnu.org/gnu/freedink/${pkgname}-${pkgver}.tar.gz")
md5sums=('4caccc9235ef68b66bdf4b9174f0af81')
sha256sums=('82cfb2e019e78b6849395dc4750662b67087d14f406d004f6d9e39e96a0c8521')
sha512sums=('1496b6a7826bf694a2919add22a8b4b08a4967d8a7fdebf2d599bd99c7a7ce67de6c2b11124423c7aa1f0feb2e7c03ce1cf00252070182936e7481791dafee61')

build () {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure --prefix=/usr --disable-embedded-resources
	make
}

check () {
	cd "${srcdir}/${pkgname}-${pkgver}"

	# This is just a trivial check.
	make check

	# This for the packaging of the source code in a snap shot package
	# NOT the installed build artifacts.
	#make distcheck
}

package () {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
}