wok view kobodeluxe/receipt @ rev 13588
linux: update modules.list
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 06 16:17:41 2012 +0100 (2012-11-06) |
parents | 8d3f3ded1725 |
children | 23c3aed67cd9 |
line source
1 # SliTaz package receipt.
3 # TODO : Regularly check if the install script automatically
4 # installs the pixmap and the .desktop file. Then remove the
5 # part in genpkg_rules() where it's done manually.
7 PACKAGE="kobodeluxe"
8 SOURCE="KoboDeluxe"
9 VERSION="0.5.1"
10 CATEGORY="games"
11 SHORT_DESC="Kobo Deluxe is a third person scrolling 2D shooter game."
12 MAINTAINER="chadi.elahmad@gmail.com"
13 TARBALL="$SOURCE-$VERSION.tar.bz2"
14 WEB_SITE="http://www.olofson.net/kobodl"
15 WGET_URL="http://www.olofson.net/kobodl/download/$TARBALL"
16 DEPENDS="libsdl libsdl-image gcc-lib-base"
17 BUILD_DEPENDS="libsdl-dev libsdl-image-dev "
18 TAGS="shooting"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 sed -i 's/pipe2/pipe_2/' enemy.cpp enemies.h
25 sed -i 's/strchr.txt/strchr((char *) txt/' graphics/window.cpp
26 ./configure \
27 --prefix=/usr \
28 --mandir=/usr/share/man \
29 --infodir=/usr/share/info \
30 --sharedstatedir=/var/games \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 # manually moving the pixmap and the .desktop
40 mkdir -p $_pkg/usr/share/pixmaps
41 mkdir -p $_pkg/usr/share/applications
42 tar xzf $src/icons.tar.gz -C $src
43 cp -a $src/icons/Ubuntu/*.xpm $_pkg/usr/share/pixmaps
44 cp -a $src/icons/Ubuntu/*.desktop $_pkg/usr/share/applications
46 mkdir -p $fs/usr
47 cp -a $_pkg/usr/bin $fs/usr
48 cp -a $_pkg/usr/share $fs/usr/share
50 mkdir -p $fs/var/games/kobo-deluxe/scores
51 chmod 667 $fs/var/games/kobo-deluxe/scores
52 }
54 pre_remove()
55 {
56 rm -rf /var/games/kobo-deluxe/*
57 }