aboutsummaryrefslogtreecommitdiffstats
path: root/testing/freeciv/APKBUILD
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-03-16 09:02:39 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2011-03-16 09:03:14 -0500
commiteeec11737f682830826f139e8b8837c5a87235ce (patch)
tree583508b74451f593c914e9a5ee795714ef5f45ac /testing/freeciv/APKBUILD
parent25e80fe757d10a6e12f8f0373da79eeafb9669df (diff)
downloadaports-eeec11737f682830826f139e8b8837c5a87235ce.tar.bz2
aports-eeec11737f682830826f139e8b8837c5a87235ce.tar.xz
testing/freeciv: split data out to freeciv-data and make freeciv-server depend on it
Diffstat (limited to 'testing/freeciv/APKBUILD')
-rw-r--r--testing/freeciv/APKBUILD16
1 files changed, 14 insertions, 2 deletions
diff --git a/testing/freeciv/APKBUILD b/testing/freeciv/APKBUILD
index 91ac2fa592..851b44e156 100644
--- a/testing/freeciv/APKBUILD
+++ b/testing/freeciv/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=freeciv
pkgver=2.2.5
-pkgrel=0
+pkgrel=1
pkgdesc="civilization 2 clone"
url="http://freeciv.wikia.org/"
arch="all"
@@ -10,7 +10,7 @@ license="GPL"
depends="$pkgname-server"
makedepends="gtk+-dev gzip"
install=""
-subpackages="$pkgname-dev $pkgname-doc $pkgname-server"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-server $pkgname-data"
source="http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
_builddir="${srcdir}/${pkgname}-${pkgver}"
@@ -37,8 +37,20 @@ package() {
}
server() {
+ replaces="freeciv"
+ depends="freeciv-data"
+
mkdir -p "$subpkgdir"/usr/bin
+
+ mv "$pkgdir"/usr/bin/civmanual "$subpkgdir"/usr/bin/civmanual
mv "$pkgdir"/usr/bin/freeciv-server "$subpkgdir"/usr/bin/freeciv-server
}
+data() {
+ arch="noarch"
+
+ mkdir -p "$subpkgdir"/usr/share
+ mv "$pkgdir"/usr/share/freeciv "$subpkgdir"/usr/share/freeciv
+}
+
md5sums="e717de02c77139593f21b930245d1709 freeciv-2.2.5.tar.bz2"