wok-next annotate prboom/receipt @ rev 7359
Up: scribus to 1.3.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Nov 23 01:59:29 2010 +0000 (2010-11-23) |
parents | c161b9c835d2 |
children | 101eedb1efef |
rev | line source |
---|---|
mallory@2693 | 1 # SliTaz package receipt. |
mallory@2693 | 2 |
mallory@2693 | 3 PACKAGE="prboom" |
mallory@2693 | 4 VERSION="2.5.0" |
mallory@2693 | 5 CATEGORY="games" |
mallory@2693 | 6 SHORT_DESC="PrBoom is the culmination of years of work by various people and projects on the Doom source code." |
mallory@2693 | 7 MAINTAINER="mallory@sweetpeople.org" |
slaxemulator@6970 | 8 DEPENDS="libsdl libsdl-mixer libsdl-net libpng mesa libglu-mesa" |
jozee@5019 | 9 SUGGESTED="nvidia" |
pankso@3425 | 10 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev" |
mallory@2693 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
mallory@2693 | 12 WEB_SITE="http://prboom.sourceforge.net/" |
mallory@2693 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
mallory@2693 | 14 |
mallory@2693 | 15 # Rules to configure and make the package. |
mallory@2693 | 16 compile_rules() |
mallory@2693 | 17 { |
mallory@2693 | 18 cd $src |
mallory@2693 | 19 ./configure \ |
mallory@2693 | 20 --prefix=/usr \ |
mallory@2693 | 21 --infodir=/usr/share/info \ |
mallory@2693 | 22 --mandir=/usr/share/man \ |
mallory@2693 | 23 $CONFIGURE_ARGS && |
pascal@5778 | 24 make -j 4 && make DESTDIR=$PWD/_pkg install |
mallory@2693 | 25 } |
mallory@2693 | 26 |
mallory@2693 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2693 | 28 genpkg_rules() |
mallory@2693 | 29 { |
mallory@2716 | 30 echo "Creating package tree" |
mallory@2716 | 31 mkdir -p $fs/usr/games \ |
mallory@2716 | 32 $fs/usr/share/games \ |
mallory@2716 | 33 $fs/usr/share/applications \ |
mallory@2716 | 34 $fs/usr/share/pixmaps |
mallory@2716 | 35 |
mallory@2716 | 36 echo "Copying package files" |
mallory@2693 | 37 cp -a $_pkg/usr/games $fs/usr |
mallory@2716 | 38 cp -a $_pkg/usr/share/games $fs/usr/share |
mallory@2716 | 39 |
mallory@2716 | 40 echo "Downloading game data : doom1.wad" |
pascal@5554 | 41 [ -f $SOURCES_REPOSITORY/doom1.wad ] || |
pascal@5554 | 42 wget http://people.slitaz.org/~mallory/stuff/prboom/doom1.wad -P $SOURCES_REPOSITORY |
pascal@5554 | 43 cp $SOURCES_REPOSITORY/doom1.wad $fs/usr/share/games/doom |
mallory@2716 | 44 |
mallory@2716 | 45 echo "Copying metadata" |
pascal@2736 | 46 cp stuff/prboom.desktop $fs/usr/share/applications |
mallory@2716 | 47 cp stuff/doom.png $fs/usr/share/pixmaps |
mallory@2693 | 48 } |
mallory@2693 | 49 |