wok-stable view kobodeluxe/receipt @ rev 5068
move static binaries in /usr/share/boot to avoid tazwok strip
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 12 17:24:19 2010 +0100 (2010-03-12) |
parents | 9bac91257596 |
children | 8d8c479de861 |
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 xvf $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 }