wok-current annotate warmux/receipt @ rev 8993

Wormux is now named warmux. Up: warmux to 11.01.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Mar 03 06:01:52 2011 +0000 (2011-03-03)
parents
children 1cbcb9c1afb9
rev   line source
slaxemulator@8993 1 # SliTaz package receipt.
slaxemulator@8993 2
slaxemulator@8993 3 PACKAGE="warmux"
slaxemulator@8993 4 VERSION="11.01"
slaxemulator@8993 5 CATEGORY="games"
slaxemulator@8993 6 SHORT_DESC="Warmux game."
slaxemulator@8993 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@8993 8 DEPENDS="libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \
slaxemulator@8993 9 curl freetype libxml2 libxml++ gcc-lib-base gettext"
slaxemulator@8993 10 BUILD_DEPENDS="pkg-config"
slaxemulator@8993 11 SUGGESTED="warmux-music"
slaxemulator@8993 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@8993 13 WEB_SITE="http://www.wormux.org/"
slaxemulator@8993 14 WGET_URL="http://download.gna.org/warmux/$TARBALL"
slaxemulator@8993 15 PROVIDE="wormux"
slaxemulator@8993 16
slaxemulator@8993 17 # Rules to configure and make the package.
slaxemulator@8993 18 compile_rules()
slaxemulator@8993 19 {
slaxemulator@8993 20 cd $src
slaxemulator@8993 21 #sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\
slaxemulator@8993 22 # Makefile
slaxemulator@8993 23 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\
slaxemulator@8993 24 data/Makefile.in
slaxemulator@8993 25 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
slaxemulator@8993 26 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
slaxemulator@8993 27 mkdir -p $DESTDIR/usr/share/warmux
slaxemulator@8993 28 ./configure \
slaxemulator@8993 29 --bindir=/usr/games \
slaxemulator@8993 30 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf &&
slaxemulator@8993 31 make &&
slaxemulator@8993 32 make -j1 install
slaxemulator@8993 33 }
slaxemulator@8993 34
slaxemulator@8993 35 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@8993 36 genpkg_rules()
slaxemulator@8993 37 {
slaxemulator@8993 38 mkdir -p $fs/usr/share
slaxemulator@8993 39 cp -a $_pkg/usr/games $fs/usr
slaxemulator@8993 40 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
slaxemulator@8993 41 cp -a $_pkg/usr/share/warmux $fs/usr/share
slaxemulator@8993 42 # Remove unecessary files
slaxemulator@8993 43 rm -rf $fs/usr/share/warmux/font
slaxemulator@8993 44 rm -rf $fs/usr/share/warmux/music
slaxemulator@8993 45 #rm -rf $fs/usr/share/warmux/sound
slaxemulator@8993 46 }
slaxemulator@8993 47