From ad596198ac17dc5c2fadba97cf88a890b635e0d1 Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Fri, 16 Nov 2007 17:34:31 +1100 Subject: [PATCH] warzone2100: 2.0.5 -> 2.0.8_rc1 and taken over maintainership --- warzone2100/.md5sum | 2 +- warzone2100/Pkgfile | 24 ++++++++++++++++++------ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/warzone2100/.md5sum b/warzone2100/.md5sum index e9d01c95f..ab3e5c8f7 100644 --- a/warzone2100/.md5sum +++ b/warzone2100/.md5sum @@ -1 +1 @@ -56e83a64d5b7aa60ced3d7ac7281bb42 warzone2100-2.0.5.tar.bz2 +5633f8b4a859d2acde7894ea88dc829c warzone2100-2.0.8_rc1.tar.bz2 diff --git a/warzone2100/Pkgfile b/warzone2100/Pkgfile index bff09eabb..f0ed47857 100644 --- a/warzone2100/Pkgfile +++ b/warzone2100/Pkgfile @@ -1,12 +1,14 @@ -# Description: A real-time strategy game -# URL: http://wz2100.net/ -# Maintainer: Mark Rosenstand, mark at borkware dot net -# Depends on: libjpeg, libmad, libpng, libvorbis, mesa3d, openal, physfs, sdl_net +# Description: A real-time strategy game. +# URL: http://wz2100.net/ +# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au +# Packager: Mark Rosenstand, mark at borkware dot net +# Depends on: libjpeg libmad libpng libvorbis mesa3d openal physfs sdl_net smpeg zip +# Optional: upx name=warzone2100 -version=2.0.5 +version=2.0.8_rc1 release=1 -source=(http://download.gna.org/warzone/releases/2.0/warzone2100-$version.tar.bz2) +source=(http://download.gna.org/warzone/releases/${version%*.}/warzone2100-$version.tar.bz2) build() { cd warzone2100-$version @@ -14,4 +16,14 @@ build() { ./configure --prefix=/usr make make DESTDIR=$PKG install + rm -r $PKG/usr/share/doc + + # compress binary files if upx is installed to save disk space + if pkginfo -i |grep '^upx ' > /dev/null; then + ( + cd $PKG/usr/bin + upx -9 warzone2100 + ) + fi } +