wok-stable annotate prboom/receipt @ rev 11455
groff: pack /usr/share files to the correct path
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sat Dec 17 11:42:21 2011 +0100 (2011-12-17) |
parents | 101eedb1efef |
children | bc84d190c6b2 |
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@9278 | 8 DEPENDS="libsdl libsdl-mixer libsdl-net libpng mesa libglu-mesa freedoom" |
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 \ |
slaxemulator@9278 | 23 --disable-i386-asm \ |
mallory@2693 | 24 $CONFIGURE_ARGS && |
pascal@5778 | 25 make -j 4 && make DESTDIR=$PWD/_pkg install |
mallory@2693 | 26 } |
mallory@2693 | 27 |
mallory@2693 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2693 | 29 genpkg_rules() |
mallory@2693 | 30 { |
mallory@2716 | 31 echo "Creating package tree" |
mallory@2716 | 32 mkdir -p $fs/usr/games \ |
mallory@2716 | 33 $fs/usr/share/games \ |
mallory@2716 | 34 $fs/usr/share/applications \ |
mallory@2716 | 35 $fs/usr/share/pixmaps |
mallory@2716 | 36 |
mallory@2716 | 37 echo "Copying package files" |
mallory@2693 | 38 cp -a $_pkg/usr/games $fs/usr |
mallory@2716 | 39 cp -a $_pkg/usr/share/games $fs/usr/share |
mallory@2716 | 40 |
mallory@2716 | 41 echo "Copying metadata" |
slaxemulator@9278 | 42 cp $stuff/prboom.desktop $fs/usr/share/applications |
slaxemulator@9278 | 43 cp $stuff/doom.png $fs/usr/share/pixmaps |
mallory@2693 | 44 } |
mallory@2693 | 45 |