wok-current annotate wormux/receipt @ rev 1399
Up: wormux to 0.8.1
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Sep 20 11:15:19 2008 +0200 (2008-09-20) |
parents | 64c626e98a31 |
children | b69c8150007d |
rev | line source |
---|---|
pankso@1103 | 1 # SliTaz package receipt. |
pankso@1103 | 2 |
pankso@1103 | 3 PACKAGE="wormux" |
erjo@1399 | 4 VERSION="0.8.1" |
pankso@1103 | 5 CATEGORY="games" |
pankso@1103 | 6 SHORT_DESC="Wormux game." |
erjo@1399 | 7 DEPENDS="xorg libsdl-gfx libsdl-image libsdl-mixer |
pankso@1185 | 8 libsdl-net libsdl-ttf curl" |
erjo@1399 | 9 BUILD_DEPENDS="xorg-dev libsdl-gfx-dev libsdl-image-dev |
erjo@1399 | 10 libsdl-mixer-dev libsdl-net-dev libsdl-ttf libsdl-ttf-dev curl-dev" |
pankso@1103 | 11 MAINTAINER="pankso@slitaz.org" |
pankso@1103 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@1103 | 13 WEB_SITE="http://www.wormux.org/" |
pankso@1103 | 14 WGET_URL="http://download.gna.org/wormux/$TARBALL" |
pankso@1103 | 15 |
pankso@1103 | 16 # Rules to configure and make the package. |
pankso@1103 | 17 compile_rules() |
pankso@1103 | 18 { |
pankso@1103 | 19 cd $src |
pankso@1103 | 20 sed -i s:"INSTALL = /usr/bin/install -c":"INSTALL = /usr/bin/install -c -d":\ |
pankso@1103 | 21 Makefile |
erjo@1399 | 22 sed -i 's/test -z "$(pkgdatadir)"/test -d "$(pkgdatadir)"/'\ |
erjo@1399 | 23 data/Makefile.in |
pankso@1103 | 24 ./configure \ |
pankso@1103 | 25 --prefix=/usr \ |
pankso@1103 | 26 --bindir=/usr/games \ |
pankso@1103 | 27 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \ |
erjo@1399 | 28 $CONFIGURE_ARGS && |
erjo@1399 | 29 make && |
pankso@1103 | 30 make DESTDIR=$PWD/_pkg install |
pankso@1103 | 31 } |
pankso@1103 | 32 |
pankso@1103 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@1103 | 34 genpkg_rules() |
pankso@1103 | 35 { |
pankso@1103 | 36 mkdir -p $fs/usr/share |
pankso@1103 | 37 cp -a $_pkg/usr/games $fs/usr |
pankso@1103 | 38 cp -a $_pkg/usr/share/wormux $fs/usr/share |
pankso@1103 | 39 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
pankso@1103 | 40 # Remove unecessary files |
pankso@1103 | 41 rm -rf $fs/usr/share/wormux/font |
pankso@1103 | 42 } |