wok-current view prboom/receipt @ rev 9113

slitaz-doc: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 05 11:34:20 2011 +0100 (2011-03-05)
parents 07e6c84aad04
children 59e6ea494251
line source
1 # SliTaz package receipt.
3 PACKAGE="prboom"
4 VERSION="2.5.0"
5 CATEGORY="games"
6 SHORT_DESC="PrBoom is the culmination of years of work by various people and projects on the Doom source code."
7 MAINTAINER="mallory@sweetpeople.org"
8 DEPENDS="libsdl libsdl-mixer libsdl-net libpng mesa libglu-mesa"
9 SUGGESTED="nvidia"
10 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WEB_SITE="http://prboom.sourceforge.net/"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS &&
24 make -j 4 && make DESTDIR=$PWD/_pkg install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 echo "Creating package tree"
31 mkdir -p $fs/usr/games \
32 $fs/usr/share/games \
33 $fs/usr/share/applications \
34 $fs/usr/share/pixmaps
36 echo "Copying package files"
37 cp -a $_pkg/usr/games $fs/usr
38 cp -a $_pkg/usr/share/games $fs/usr/share
40 echo "Downloading game data : doom1.wad"
41 [ -f $SOURCES_REPOSITORY/doom1.wad ] ||
42 wget http://mirror.slitaz.org/sources/packages/d/doom1.wad -P $SOURCES_REPOSITORY
43 cp $SOURCES_REPOSITORY/doom1.wad $fs/usr/share/games/doom
45 echo "Copying metadata"
46 cp stuff/prboom.desktop $fs/usr/share/applications
47 cp stuff/doom.png $fs/usr/share/pixmaps
48 }