wok-4.x view prboom/receipt @ rev 5444

Up dahdi-* (2.3.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 05 11:09:57 2010 +0200 (2010-05-05)
parents f3327707164a
children aebcbcedcc6b
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 libgl libglu"
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 && 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 wget http://people.slitaz.org/~mallory/stuff/prboom/doom1.wad -O $fs/usr/share/games/doom/doom1.wad
43 echo "Copying metadata"
44 cp stuff/prboom.desktop $fs/usr/share/applications
45 cp stuff/doom.png $fs/usr/share/pixmaps
46 }