wok view wormux/receipt @ rev 4969
add/improve TAGS n* receipts
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Feb 24 10:31:06 2010 +0000 (2010-02-24) |
parents | dd1933864dcc |
children | 4897058add72 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wormux"
4 VERSION="0.8.5"
5 CATEGORY="games"
6 SHORT_DESC="Wormux game."
7 DEPENDS="xorg libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \
8 curl freetype libxml2"
9 BUILD_DEPENDS="$DEPENDS xorg-dev libsdl-gfx-dev libsdl-image-dev \
10 libsdl-mixer-dev libsdl-net-dev libsdl-ttf libsdl-ttf-dev curl-dev"
11 SUGGESTED="wormux-music"
12 MAINTAINER="pankso@slitaz.org"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WEB_SITE="http://www.wormux.org/"
15 WGET_URL="http://download.gna.org/wormux/$TARBALL"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\
22 Makefile
23 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\
24 data/Makefile.in
25 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
26 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
27 mkdir -p _pkg/usr/share/wormux
28 ./configure \
29 --prefix=/usr \
30 --bindir=/usr/games \
31 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $_pkg/usr/games $fs/usr
42 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
43 cp -a $_pkg/usr/share/wormux $fs/usr/share
44 # Remove unecessary files
45 rm -rf $fs/usr/share/wormux/font
46 rm -rf $fs/usr/share/wormux/music
47 #rm -rf $fs/usr/share/wormux/sound
48 }