wok-stable view kobodeluxe/receipt @ rev 4416
xarchine: update SUGGESTED
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 21 21:10:39 2009 +0200 (2009-10-21) |
parents | 2c679ce49f4c |
children | 9bac91257596 |
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"
14 TARBALL="$SOURCE-$VERSION.tar.bz2"
15 WEB_SITE="http://www.olofson.net/kobodl"
16 WGET_URL="http://www.olofson.net/kobodl/download/$TARBALL"
18 DEPENDS="libsdl libsdl-image "
19 BUILD_DEPENDS="libsdl-dev libsdl-image-dev "
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 sed -i 's/pipe2/pipe_2/' enemy.cpp enemies.h
26 sed -i 's/strchr.txt/strchr((char *) txt/' graphics/window.cpp
27 ./configure \
28 --prefix=/usr \
29 --mandir=/usr/share/man \
30 --infodir=/usr/share/info \
31 --sharedstatedir=/var/games \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 # manually moving the pixmap and the .desktop
41 mkdir -p $_pkg/usr/share/pixmaps
42 mkdir -p $_pkg/usr/share/applications
43 tar xvf $src/icons.tar.gz -C $src
44 cp -a $src/icons/Ubuntu/*.xpm $_pkg/usr/share/pixmaps
45 cp -a $src/icons/Ubuntu/*.desktop $_pkg/usr/share/applications
47 mkdir -p $fs/usr
48 cp -a $_pkg/usr/bin $fs/usr
49 cp -a $_pkg/usr/share $fs/usr/share
51 mkdir -p $fs/var/games/kobo-deluxe/scores
52 chmod 667 $fs/var/games/kobo-deluxe/scores
53 }
55 pre_remove()
56 {
57 rm -rf /var/games/kobo-deluxe/*
58 }