wok view prboom/receipt @ rev 7387
Up dahdi-linux (2.4.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 26 10:55:03 2010 +0100 (2010-11-26) |
parents | c161b9c835d2 |
children | 101eedb1efef |
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://people.slitaz.org/~mallory/stuff/prboom/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 }