wok-current annotate eduke32/receipt @ rev 5655
Up: vorbis-tools (1.4.0)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun May 30 02:41:49 2010 +0000 (2010-05-30) |
parents | 31c985a0bd3d |
children | 7ea88aca3c62 |
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@5552 | 20 [ -f $SOURCES_REPOSITORY/eduke32_src_20090313.diff ] && |
pascal@5552 | 21 cp $SOURCES_REPOSITORY/eduke32_src_20090313.diff . |
pascal@5552 | 22 if [ ! -f eduke32_src_20090313.diff ]; then |
pascal@5552 | 23 wget http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090313.diff |
pascal@5552 | 24 cp eduke32_src_20090313.diff $SOURCES_REPOSITORY |
pascal@5552 | 25 fi |
mallory@2717 | 26 patch -p1 < eduke32_src_20090313.diff |
pascal@2751 | 27 make || return 1 |
mallory@2717 | 28 mkdir $src/_pkg |
mallory@2717 | 29 cp eduke32 mapster32 $src/_pkg |
mallory@2717 | 30 } |
mallory@2717 | 31 |
mallory@2717 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2717 | 33 genpkg_rules() |
mallory@2717 | 34 { |
mallory@2717 | 35 echo "Building package tree" |
mallory@2717 | 36 mkdir -p $fs/usr/bin \ |
mallory@2717 | 37 $fs/usr/share/games/eduke32 \ |
mallory@2717 | 38 $fs/usr/share/applications \ |
mallory@2717 | 39 $fs/usr/share/pixmaps \ |
mallory@2717 | 40 |
mallory@2717 | 41 echo "Copying package files" |
mallory@2717 | 42 cp -a $src/eduke32 $src/mapster32 $fs/usr/bin |
mallory@2717 | 43 |
mallory@2717 | 44 echo "Downloading game data" |
mallory@2717 | 45 wget http://people.slitaz.org/~mallory/stuff/eduke32/duke3d.grp -O $fs/usr/share/games/eduke32/duke3d.grp |
mallory@2717 | 46 |
mallory@2717 | 47 echo "Copying metadata" |
mallory@2717 | 48 cp stuff/eduke32.desktop $fs/usr/share/applications |
mallory@2717 | 49 cp stuff/eduke32.png $fs/usr/share/pixmaps |
mallory@2717 | 50 } |
mallory@2717 | 51 |
mallory@2717 | 52 |