diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-03-15 12:36:21 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-03-15 12:36:21 -0500 |
commit | 29c2454c60a1bb2e5cc858a836963d27fbf28430 (patch) | |
tree | 00d7dbc501726f90120c8c9eaa77e66953ee99d3 /testing | |
parent | 13630221d10124e59e2c8b162c36c7fbb8508522 (diff) | |
download | aports-29c2454c60a1bb2e5cc858a836963d27fbf28430.tar.bz2 aports-29c2454c60a1bb2e5cc858a836963d27fbf28430.tar.xz |
testing/freeciv: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/freeciv/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/freeciv/APKBUILD b/testing/freeciv/APKBUILD new file mode 100644 index 0000000000..91ac2fa592 --- /dev/null +++ b/testing/freeciv/APKBUILD @@ -0,0 +1,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" |