wok-current view prboom/receipt @ rev 5614
catalyst: fix compile with 2.6.33.4 and WGET_URL
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu May 20 10:43:52 2010 -0400 (2010-05-20) |
parents | de5d8ec1d324 |
children | c161b9c835d2 |
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 [ -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 }