wok-current view wormux/receipt @ rev 1660
cups: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 08 13:49:47 2008 +0000 (2008-11-08) |
parents | 79b3f891fb03 |
children | 8f4ac32ab3b1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wormux"
4 VERSION="0.8.1"
5 CATEGORY="games"
6 SHORT_DESC="Wormux game."
7 DEPENDS="xorg libsdl-gfx libsdl-image libsdl-mixer
8 libsdl-net libsdl-ttf curl"
9 BUILD_DEPENDS="xorg-dev libsdl-gfx-dev libsdl-image-dev
10 libsdl-mixer-dev libsdl-net-dev libsdl-ttf libsdl-ttf-dev curl-dev"
11 MAINTAINER="pankso@slitaz.org"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.wormux.org/"
14 WGET_URL="http://download.gna.org/wormux/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\
21 Makefile
22 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\
23 data/Makefile.in
24 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
25 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
26 mkdir -p _pkg/usr/share/wormux
27 ./configure \
28 --prefix=/usr \
29 --bindir=/usr/games \
30 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
40 cp -a $_pkg/usr/games $fs/usr
41 cp -a $_pkg/usr/share/wormux $fs/usr/share
42 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
43 # Remove unecessary files
44 rm -rf $fs/usr/share/wormux/font
45 }