diff options
Diffstat (limited to 'unmaintained/freeciv/APKBUILD')
-rw-r--r-- | unmaintained/freeciv/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/unmaintained/freeciv/APKBUILD b/unmaintained/freeciv/APKBUILD new file mode 100644 index 0000000000..445de914ba --- /dev/null +++ b/unmaintained/freeciv/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=freeciv +pkgver=2.4.3 +pkgrel=0 +pkgdesc="civilization 2 clone" +url="http://freeciv.wikia.org/" +arch="all" +license="GPL" +depends="$pkgname-server" +makedepends="gtk+-dev gzip curl-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-server $pkgname-data $pkgname-lang" +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() { + replaces="freeciv" + depends="freeciv-data" + mkdir -p "$subpkgdir"/usr/bin + 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="437f9a4aadb80619a7c5ae9643142b8b freeciv-2.4.3.tar.bz2" +sha256sums="7f107fe3b09f37934410dc7a64ac1b99a95997ddf53da53933b75d4da79fa899 freeciv-2.4.3.tar.bz2" +sha512sums="7abed9b3c0f65aa5ed856080a6da68152a8fe9ea285a070858f9a92ec32fb27bfb48fb77b7098a23bbf3e092c982ed455b6ea795230295c9d14f4832378ee3ba freeciv-2.4.3.tar.bz2" |