30 lines
734 B
Plaintext
30 lines
734 B
Plaintext
# 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.8_rc1
|
|
release=1
|
|
source=(http://download.gna.org/warzone/releases/${version%*.}/warzone2100-$version.tar.bz2)
|
|
|
|
build() {
|
|
cd warzone2100-$version
|
|
./autogen.sh
|
|
./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
|
|
}
|
|
|