contrib/wop/Pkgfile

28 lines
923 B
Plaintext
Raw Normal View History

2006-11-20 07:26:53 +10:00
# Description: Real-time Worms game for Linux.
2008-03-07 02:36:16 +11:00
# URL: http://wormsofprey.org/
2008-03-26 13:45:31 +11:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
2008-03-07 02:36:16 +11:00
# Packager: James Mills, prologic at shortcircuit dot net dot au
2009-01-20 00:45:57 +11:00
# Depends on: sdl_net sdl_mixer sdl_image sdl_ttf gcc34
2006-11-14 09:01:22 +10:00
name=wop
version=0.4.3
2006-11-20 07:08:58 +10:00
release=1
2009-01-20 00:45:57 +11:00
source=(http://wormsofprey.org/download/wop-$version-src.tar.bz2
http://wormsofprey.org/download/wopdata-2005-12-21.tar.bz2
wop-0.4.3-Makefile.patch
2008-03-07 02:36:16 +11:00
wop-client wop-server)
2006-11-14 09:01:22 +10:00
build() {
2009-01-20 00:45:57 +11:00
cd $name-$version
2009-10-18 00:11:00 +11:00
CXXFLAGS+=' -march=i686'
2009-01-20 00:45:57 +11:00
find $SRC -name Makefile -exec sed -i -e 's/CXX =.*/CXX = g++-3.4/' {} \;
patch -p 0 -i $SRC/wop-0.4.3-Makefile.patch
2008-03-07 02:36:16 +11:00
make clean
make
install -d $PKG/usr/share/$name
cp -r $SRC/wopdata-2005-12-21/* $PKG/usr/share/wop/
install -D -m 0755 bin/$name $PKG/usr/bin/wop
install -D -m 0755 $SRC/wop-client $PKG/usr/bin/wop-client
install -D -m 0755 $SRC/wop-server $PKG/usr/bin/wop-server
2006-11-14 09:01:22 +10:00
}