blob: 91ac2fa592cd506947b33ccad2e2d8aa84d5d2ca (
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
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=freeciv
pkgver=2.2.5
pkgrel=0
pkgdesc="civilization 2 clone"
url="http://freeciv.wikia.org/"
arch="all"
license="GPL"
depends="$pkgname-server"
makedepends="gtk+-dev gzip"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-server"
source="http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
server() {
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/freeciv-server "$subpkgdir"/usr/bin/freeciv-server
}
md5sums="e717de02c77139593f21b930245d1709 freeciv-2.2.5.tar.bz2"
|