wok annotate eduke32/receipt @ rev 3021

liunx: add sc92031 support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon May 11 22:46:46 2009 +0200 (2009-05-11)
parents 3eadd42e4748
children e8024c01fc47
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"
mallory@2717 8 DEPENDS="libSDL libsdl-mixer libvorbis gtk+"
pascal@2751 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"
mallory@2717 13
mallory@2717 14 # Rules to configure and make the package.
mallory@2717 15 compile_rules()
mallory@2717 16 {
mallory@2717 17 mv eduke32_src_20090131 eduke32-20090313
mallory@2717 18 cd $src
mallory@2717 19 wget http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090313.diff
mallory@2717 20 patch -p1 < eduke32_src_20090313.diff
pascal@2751 21 make || return 1
mallory@2717 22 mkdir $src/_pkg
mallory@2717 23 cp eduke32 mapster32 $src/_pkg
mallory@2717 24 }
mallory@2717 25
mallory@2717 26 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2717 27 genpkg_rules()
mallory@2717 28 {
mallory@2717 29 echo "Building package tree"
mallory@2717 30 mkdir -p $fs/usr/bin \
mallory@2717 31 $fs/usr/share/games/eduke32 \
mallory@2717 32 $fs/usr/share/applications \
mallory@2717 33 $fs/usr/share/pixmaps \
mallory@2717 34
mallory@2717 35 echo "Copying package files"
mallory@2717 36 cp -a $src/eduke32 $src/mapster32 $fs/usr/bin
mallory@2717 37
mallory@2717 38 echo "Downloading game data"
mallory@2717 39 wget http://people.slitaz.org/~mallory/stuff/eduke32/duke3d.grp -O $fs/usr/share/games/eduke32/duke3d.grp
mallory@2717 40
mallory@2717 41 echo "Copying metadata"
mallory@2717 42 cp stuff/eduke32.desktop $fs/usr/share/applications
mallory@2717 43 cp stuff/eduke32.png $fs/usr/share/pixmaps
mallory@2717 44 }
mallory@2717 45
mallory@2717 46