wok view wormux/receipt @ rev 8615
Fix: replace exit 1 by return 1 in receipts (exit broke cook-list function)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Feb 14 19:09:46 2011 +0100 (2011-02-14) |
parents | 4897058add72 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="wormux"
4 VERSION="0.9.2.1"
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 libxml++ gcc-lib-base gettext"
9 BUILD_DEPENDS="$DEPENDS xorg-dev libsdl-gfx-dev libsdl-image-dev \
10 libsdl-mixer-dev libsdl-net-dev libsdl-ttf-dev curl-dev pkg-config libxml2-dev libxml++-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 }