summaryrefslogtreecommitdiff
path: root/repo/freeciv/freeciv.xibuild
blob: a50f4bed3091155b7ed073b53fedad607e49099d (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
#!/bin/sh

NAME="freeciv"
DESC="Free and Open Source empire-building strategy game (meta package)"

MAKEDEPS="curl readline gettext sdl2-mixer gzip pkg-config glib atk pango gdk-pixbuf gtk3 qtchooser qt5-qtbase gzip sdl2 sdl2-image sdl2-ttf sdl2-gfx sqlite3"

PKG_VER=3.0.0
SOURCE="https://downloads.sourceforge.net/sourceforge/freeciv/freeciv-$PKG_VER.tar.xz"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-client=gtk3.22,qt,sdl2 \
		--enable-debug=no \
		--enable-fcmp=gtk3,qt,cli \
		--enable-fcdb=sqlite3 \
		--enable-ipv6=yes \
		--with-readline
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$PKG_DEST" install
}