wok-6.x annotate eduke32/receipt @ rev 9265

eduke32: get sources from mirror.slitaz.org
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 15 14:39:29 2011 +0100 (2011-03-15)
parents 84faf27a4075
children 1229eb02952c
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/"
pascal@9265 12 WGET_URL="http://mirror.slitaz.org/sources/packages/e/$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 cd $src
pascal@5807 19 [ -s $SOURCES_REPOSITORY/duke3d.grp ] ||
pascal@9265 20 wget http://mirror.slitaz.org/sources/packages/d/duke3d.grp -P $SOURCES_REPOSITORY
pascal@5807 21 [ -s $SOURCES_REPOSITORY/eduke32_src_20090313.diff ] ||
pascal@9265 22 wget http://mirror.slitaz.org/sources/packages/e/eduke32_src_20090313.diff -P $SOURCES_REPOSITORY
pascal@5807 23 patch -p1 < $SOURCES_REPOSITORY/eduke32_src_20090313.diff
pascal@5802 24 make -j 4 || return 1
mallory@2717 25 mkdir $src/_pkg
mallory@2717 26 cp eduke32 mapster32 $src/_pkg
mallory@2717 27 }
mallory@2717 28
mallory@2717 29 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2717 30 genpkg_rules()
mallory@2717 31 {
mallory@2717 32 echo "Building package tree"
mallory@2717 33 mkdir -p $fs/usr/bin \
mallory@2717 34 $fs/usr/share/games/eduke32 \
mallory@2717 35 $fs/usr/share/applications \
mallory@2717 36 $fs/usr/share/pixmaps \
mallory@2717 37
mallory@2717 38 echo "Copying package files"
pascal@9265 39 cp -a $_pkg/eduke32 $_pkg/mapster32 $fs/usr/bin
mallory@2717 40
mallory@2717 41 echo "Downloading game data"
pascal@5807 42 cp $SOURCES_REPOSITORY/duke3d.grp $fs/usr/share/games/eduke32/duke3d.grp
mallory@2717 43
mallory@2717 44 echo "Copying metadata"
pascal@9265 45 cp $stuff/eduke32.desktop $fs/usr/share/applications
pascal@9265 46 cp $stuff/eduke32.png $fs/usr/share/pixmaps
mallory@2717 47 }
mallory@2717 48
mallory@2717 49