wok-6.x annotate wormux/receipt @ rev 5008
[x-z]*: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 28 18:16:33 2010 +0100 (2010-02-28) |
parents | 3dafb9a446c1 |
children | 762bd8aee887 |
rev | line source |
---|---|
pankso@1103 | 1 # SliTaz package receipt. |
pankso@1103 | 2 |
pankso@1103 | 3 PACKAGE="wormux" |
erjo@4722 | 4 VERSION="0.8.5" |
pankso@1103 | 5 CATEGORY="games" |
pankso@1103 | 6 SHORT_DESC="Wormux game." |
pankso@3079 | 7 DEPENDS="xorg libsdl-gfx libsdl-image libsdl-mixer libsdl-net libsdl-ttf \ |
pascal@5007 | 8 curl freetype libxml2 gcc-lib-base" |
pankso@3079 | 9 BUILD_DEPENDS="$DEPENDS xorg-dev libsdl-gfx-dev libsdl-image-dev \ |
pankso@3079 | 10 libsdl-mixer-dev libsdl-net-dev libsdl-ttf libsdl-ttf-dev curl-dev" |
pankso@3079 | 11 SUGGESTED="wormux-music" |
pankso@1103 | 12 MAINTAINER="pankso@slitaz.org" |
pankso@1103 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@1103 | 14 WEB_SITE="http://www.wormux.org/" |
pankso@1103 | 15 WGET_URL="http://download.gna.org/wormux/$TARBALL" |
pankso@1103 | 16 |
pankso@1103 | 17 # Rules to configure and make the package. |
pankso@1103 | 18 compile_rules() |
pankso@1103 | 19 { |
pankso@1103 | 20 cd $src |
pankso@1103 | 21 sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\ |
pankso@1103 | 22 Makefile |
erjo@1399 | 23 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\ |
erjo@1399 | 24 data/Makefile.in |
pascal@1540 | 25 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp |
pascal@1540 | 26 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile* |
pascal@1540 | 27 mkdir -p _pkg/usr/share/wormux |
pankso@1103 | 28 ./configure \ |
pankso@1103 | 29 --prefix=/usr \ |
pankso@1103 | 30 --bindir=/usr/games \ |
pankso@1103 | 31 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \ |
erjo@1399 | 32 $CONFIGURE_ARGS && |
erjo@1399 | 33 make && |
pankso@1103 | 34 make DESTDIR=$PWD/_pkg install |
pankso@1103 | 35 } |
pankso@1103 | 36 |
pankso@1103 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@1103 | 38 genpkg_rules() |
pankso@1103 | 39 { |
pankso@1103 | 40 mkdir -p $fs/usr/share |
pankso@1103 | 41 cp -a $_pkg/usr/games $fs/usr |
pankso@3079 | 42 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
pankso@1103 | 43 cp -a $_pkg/usr/share/wormux $fs/usr/share |
pankso@1103 | 44 # Remove unecessary files |
pankso@1103 | 45 rm -rf $fs/usr/share/wormux/font |
pankso@3079 | 46 rm -rf $fs/usr/share/wormux/music |
pankso@3079 | 47 #rm -rf $fs/usr/share/wormux/sound |
pankso@1103 | 48 } |