wok annotate wormux/receipt @ rev 2187

Add netatalk-pam
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 09 09:48:49 2009 +0000 (2009-02-09)
parents 8f4ac32ab3b1
children d0b4a9f7bd04
rev   line source
pankso@1103 1 # SliTaz package receipt.
pankso@1103 2
pankso@1103 3 PACKAGE="wormux"
pankso@2095 4 VERSION="0.8.2"
pankso@1103 5 CATEGORY="games"
pankso@1103 6 SHORT_DESC="Wormux game."
erjo@1399 7 DEPENDS="xorg libsdl-gfx libsdl-image libsdl-mixer
pascal@2091 8 libsdl-net libsdl-ttf curl libiconv"
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
pascal@1540 24 sed -i 's|if USE_X11|if SKIP_USE_X11|' src/tool/copynpaste.cpp
pascal@1540 25 sed -i "s|test -d \"\\\$(pkgdatadir|test -d \"\\\$(DESTDIR)\\\$(pkgdatadir|" data/Makefile*
pascal@1540 26 mkdir -p _pkg/usr/share/wormux
pankso@1103 27 ./configure \
pankso@1103 28 --prefix=/usr \
pankso@1103 29 --bindir=/usr/games \
pankso@1103 30 --with-font-path=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf \
erjo@1399 31 $CONFIGURE_ARGS &&
erjo@1399 32 make &&
pankso@1103 33 make DESTDIR=$PWD/_pkg install
pankso@1103 34 }
pankso@1103 35
pankso@1103 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@1103 37 genpkg_rules()
pankso@1103 38 {
pankso@1103 39 mkdir -p $fs/usr/share
pankso@1103 40 cp -a $_pkg/usr/games $fs/usr
pankso@1103 41 cp -a $_pkg/usr/share/wormux $fs/usr/share
pankso@1103 42 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
pankso@1103 43 # Remove unecessary files
pankso@1103 44 rm -rf $fs/usr/share/wormux/font
pankso@1103 45 }