wok annotate eduke32/receipt @ rev 7315

Added openal to openal-dev depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Nov 17 17:45:48 2010 +0000 (2010-11-17)
parents 7ea88aca3c62
children db6172c7409a
rev   line source
mallory@2717 1 # SliTaz package receipt.
mallory@2717 2
mallory@2717 3 PACKAGE="eduke32"
mallory@2717 4 VERSION="20090313"
mallory@2717 5 CATEGORY="games"
pascal@2751 6 SHORT_DESC="Duke Nuken shoot them up port"
mallory@2717 7 MAINTAINER="mallory@sweetpeople.org"
pankso@3425 8 DEPENDS="libsdl libsdl-mixer libvorbis gtk+"
pankso@3425 9 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libvorbis-dev gtk+-dev nasm"
mallory@2717 10 TARBALL="$PACKAGE""_src_20090131.zip"
mallory@2717 11 WEB_SITE="http://www.eduke32.com/"
mallory@2717 12 WGET_URL="http://wiki.eduke32.com/stuff/source_code/$TARBALL"
jozee@4935 13 TAGS="shooting"
mallory@2717 14
mallory@2717 15 # Rules to configure and make the package.
mallory@2717 16 compile_rules()
mallory@2717 17 {
mallory@2717 18 mv eduke32_src_20090131 eduke32-20090313
mallory@2717 19 cd $src
pascal@5807 20 [ -s $SOURCES_REPOSITORY/duke3d.grp ] ||
pascal@5807 21 wget http://people.slitaz.org/~mallory/stuff/eduke32/duke3d.grp -P $SOURCES_REPOSITORY
pascal@5807 22 [ -s $SOURCES_REPOSITORY/eduke32_src_20090313.diff ] ||
pascal@5807 23 wget http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090313.diff -P $SOURCES_REPOSITORY
pascal@5807 24 patch -p1 < $SOURCES_REPOSITORY/eduke32_src_20090313.diff
pascal@5802 25 make -j 4 || return 1
mallory@2717 26 mkdir $src/_pkg
mallory@2717 27 cp eduke32 mapster32 $src/_pkg
mallory@2717 28 }
mallory@2717 29
mallory@2717 30 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2717 31 genpkg_rules()
mallory@2717 32 {
mallory@2717 33 echo "Building package tree"
mallory@2717 34 mkdir -p $fs/usr/bin \
mallory@2717 35 $fs/usr/share/games/eduke32 \
mallory@2717 36 $fs/usr/share/applications \
mallory@2717 37 $fs/usr/share/pixmaps \
mallory@2717 38
mallory@2717 39 echo "Copying package files"
mallory@2717 40 cp -a $src/eduke32 $src/mapster32 $fs/usr/bin
mallory@2717 41
mallory@2717 42 echo "Downloading game data"
pascal@5807 43 cp $SOURCES_REPOSITORY/duke3d.grp $fs/usr/share/games/eduke32/duke3d.grp
mallory@2717 44
mallory@2717 45 echo "Copying metadata"
mallory@2717 46 cp stuff/eduke32.desktop $fs/usr/share/applications
mallory@2717 47 cp stuff/eduke32.png $fs/usr/share/pixmaps
mallory@2717 48 }
mallory@2717 49
mallory@2717 50