wok-stable view eduke32/receipt @ rev 9362
Up: xorg-libXi to 1.4.2.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Mar 20 15:33:31 2011 +0000 (2011-03-20) |
parents | db6172c7409a |
children | 17056e28c846 |
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 mesa-dev"
10 TARBALL="$PACKAGE""_src_20090131.zip"
11 WEB_SITE="http://www.eduke32.com/"
12 WGET_URL="http://mirror.slitaz.org/sources/packages/e/$TARBALL"
13 TAGS="shooting"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 [ -s $SOURCES_REPOSITORY/duke3d.grp ] ||
20 wget http://mirror.slitaz.org/sources/packages/d/duke3d.grp -P $SOURCES_REPOSITORY
21 [ -s $SOURCES_REPOSITORY/eduke32_src_20090313.diff ] ||
22 wget http://mirror.slitaz.org/sources/packages/e/eduke32_src_20090313.diff -P $SOURCES_REPOSITORY
23 patch -p1 < $SOURCES_REPOSITORY/eduke32_src_20090313.diff
24 make -j 4 || return 1
25 mkdir $src/_pkg
26 cp eduke32 mapster32 $src/_pkg
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 echo "Building package tree"
33 mkdir -p $fs/usr/bin \
34 $fs/usr/share/games/eduke32 \
35 $fs/usr/share/applications \
36 $fs/usr/share/pixmaps \
38 echo "Copying package files"
39 cp -a $_pkg/eduke32 $_pkg/mapster32 $fs/usr/bin
41 echo "Downloading game data"
42 cp $SOURCES_REPOSITORY/duke3d.grp $fs/usr/share/games/eduke32/duke3d.grp
44 echo "Copying metadata"
45 cp $stuff/eduke32.desktop $fs/usr/share/applications
46 cp $stuff/eduke32.png $fs/usr/share/pixmaps
47 }