wok-stable view kobodeluxe/receipt @ rev 3564
tag some more a* receipts
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Jun 24 19:00:28 2009 +0000 (2009-06-24) |
parents | e8024c01fc47 |
children | 84783be9a1b3 |
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 ./configure \
26 --prefix=/usr \
27 --mandir=/usr/share/man \
28 --infodir=/usr/share/info \
29 --sharedstatedir=/var/games \
30 $CONFIGURE_ARGS
31 make
32 make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 # manually moving the pixmap and the .desktop
39 mkdir -p $_pkg/usr/share/pixmaps
40 mkdir -p $_pkg/usr/share/applications
41 tar xvf $src/icons.tar.gz -C $src
42 cp -a $src/icons/Ubuntu/*.xpm $_pkg/usr/share/pixmaps
43 cp -a $src/icons/Ubuntu/*.desktop $_pkg/usr/share/applications
45 mkdir -p $fs/usr
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/share $fs/usr/share
49 mkdir -p $fs/var/games/kobo-deluxe/scores
50 chmod 667 $fs/var/games/kobo-deluxe/scores
51 }
53 pre_remove()
54 {
55 rm -rf /var/games/kobo-deluxe/*
56 }