wok-stable view eduke32/receipt @ rev 8432
Add SRC_WANTED to samba-pam.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Feb 05 21:59:45 2011 +0000 (2011-02-05) |
parents | 7ea88aca3c62 |
children | db6172c7409a |
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 [ -s $SOURCES_REPOSITORY/duke3d.grp ] ||
21 wget http://people.slitaz.org/~mallory/stuff/eduke32/duke3d.grp -P $SOURCES_REPOSITORY
22 [ -s $SOURCES_REPOSITORY/eduke32_src_20090313.diff ] ||
23 wget http://wiki.eduke32.com/stuff/source_code/eduke32_src_20090313.diff -P $SOURCES_REPOSITORY
24 patch -p1 < $SOURCES_REPOSITORY/eduke32_src_20090313.diff
25 make -j 4 || return 1
26 mkdir $src/_pkg
27 cp eduke32 mapster32 $src/_pkg
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 echo "Building package tree"
34 mkdir -p $fs/usr/bin \
35 $fs/usr/share/games/eduke32 \
36 $fs/usr/share/applications \
37 $fs/usr/share/pixmaps \
39 echo "Copying package files"
40 cp -a $src/eduke32 $src/mapster32 $fs/usr/bin
42 echo "Downloading game data"
43 cp $SOURCES_REPOSITORY/duke3d.grp $fs/usr/share/games/eduke32/duke3d.grp
45 echo "Copying metadata"
46 cp stuff/eduke32.desktop $fs/usr/share/applications
47 cp stuff/eduke32.png $fs/usr/share/pixmaps
48 }