-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
77 lines (66 loc) · 1.3 KB
/
PKGBUILD
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
# $Id$
# Maintainer: Alexey Ugnichev <alexey.ugnichev@gmail.com>
pkgname=freeciv-experimental-git
pkgver=3.2.92.7.fbf34300c6
pkgrel=1
pkgdesc="A multiuser clone of the famous Microprose game of Civilization, experimental AI modules (git version)."
url="http://www.freeciv.org/"
license=('GPL')
arch=('x86_64')
depends=(
'qt6-base'
'gtk4'
'sqlite'
'curl'
'libtool'
'icu'
'hicolor-icon-theme'
'sdl2' 'sdl2_mixer' 'sdl2_image' 'sdl2_ttf' 'sdl2_gfx'
'freetype2'
'libpulse'
'gettext'
'xz'
'zlib'
'zstd'
'lua'
'bzip2'
'pango'
'cairo'
'gdk-pixbuf2'
'glib2'
'glibc'
)
makedepends=('python' 'git')
backup=('etc/freeciv/database.lua')
conflicts=('freeciv')
provides=('freeciv')
source=("${pkgname}::git+https://github.com/freeciv/freeciv.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
VERSION_REVTYPE=git ./fc_version | sed 's/-dev+/./'
}
build() {
cd "${srcdir}/${pkgname}"
mkdir .build
cd .build
../autogen.sh \
--prefix=/usr \
--sysconfdir=/etc \
--enable-client=qt,gtk4,sdl2 \
--enable-gitrev \
--enable-aimodules=experimental \
--enable-fcmp=qt,gtk4,cli \
--with-readline \
--with-gnu-ld \
--enable-sys-lua \
--enable-fcdb=sqlite3 \
--enable-ack-legacy \
--enable-shared
make
}
package() {
cd "${srcdir}/${pkgname}"
cd .build
make DESTDIR=${pkgdir} install
}