diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/freeciv |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/freeciv')
-rw-r--r-- | extra/freeciv/PKGBUILD | 27 | ||||
-rw-r--r-- | extra/freeciv/freeciv.install | 11 |
2 files changed, 38 insertions, 0 deletions
diff --git a/extra/freeciv/PKGBUILD b/extra/freeciv/PKGBUILD new file mode 100644 index 000000000..a43010488 --- /dev/null +++ b/extra/freeciv/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 115046 2011-03-16 15:19:54Z eric $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> + +pkgname=freeciv +pkgver=2.2.5 +pkgrel=1 +pkgdesc="A multiuser clone of the famous Microprose game of Civilization" +arch=('i686' 'x86_64') +url="http://www.freeciv.org/" +license=('GPL') +depends=('gtk2' 'sdl_mixer' 'readline' 'bzip2') +options=('!libtool') +install=freeciv.install +source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2) +md5sums=('e717de02c77139593f21b930245d1709') +sha1sums=('b204c4ae581be632fd2385517ada62558d48e702') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --enable-client=gtk --enable-shared + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} diff --git a/extra/freeciv/freeciv.install b/extra/freeciv/freeciv.install new file mode 100644 index 000000000..17ca8f78a --- /dev/null +++ b/extra/freeciv/freeciv.install @@ -0,0 +1,11 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |