wok-next view eduke32/receipt @ rev 5566

Up iptables (1.4.7)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 14 15:39:41 2010 +0200 (2010-05-14)
parents 31c985a0bd3d
children 7ea88aca3c62
line source
1 # SliTaz package receipt.
3 PACKAGE="eduke32"
4 VERSION="20090313"
5 CATEGORY="games"
6 SHORT_DESC="Duke Nuken shoot them up port"
7 MAINTAINER="mallory@sweetpeople.org"
8 DEPENDS="libsdl libsdl-mixer libvorbis gtk+"
9 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libvorbis-dev gtk+-dev nasm"
10 TARBALL="$PACKAGE""_src_20090131.zip"
11 WEB_SITE="http://www.eduke32.com/"
12 WGET_URL="http://wiki.eduke32.com/stuff/source_code/$TARBALL"
13 TAGS="shooting"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 mv eduke32_src_20090131 eduke32-20090313
19 cd $src
20 [ -f $SOURCES_REPOSITORY/eduke32_src_20090313.diff ] &&
21 cp $SOURCES_REPOSITORY/eduke32_src_20090313.diff .
22 if [ ! -f eduke32_src_20090313.diff ]; then
23 wget http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090313.diff
24 cp eduke32_src_20090313.diff $SOURCES_REPOSITORY
25 fi
26 patch -p1 < eduke32_src_20090313.diff
27 make || return 1
28 mkdir $src/_pkg
29 cp eduke32 mapster32 $src/_pkg
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 echo "Building package tree"
36 mkdir -p $fs/usr/bin \
37 $fs/usr/share/games/eduke32 \
38 $fs/usr/share/applications \
39 $fs/usr/share/pixmaps \
41 echo "Copying package files"
42 cp -a $src/eduke32 $src/mapster32 $fs/usr/bin
44 echo "Downloading game data"
45 wget http://people.slitaz.org/~mallory/stuff/eduke32/duke3d.grp -O $fs/usr/share/games/eduke32/duke3d.grp
47 echo "Copying metadata"
48 cp stuff/eduke32.desktop $fs/usr/share/applications
49 cp stuff/eduke32.png $fs/usr/share/pixmaps
50 }