wok-current view wormux/receipt @ rev 4057

Up: pidgin (2.6.2)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Sep 09 23:23:01 2009 +0200 (2009-09-09)
parents d0b4a9f7bd04
children 3dafb9a446c1
line source
1 # SliTaz package receipt.
3 PACKAGE="wormux"
4 VERSION="0.8.3"
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 }