wok-6.x view kobodeluxe/receipt @ rev 22625
updated cyrus-imapd and cyrus-impad-dev (2.4.17 -> 3.0.13)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 12 16:58:49 2020 +0100 (2020-01-12) |
parents | 8d8c479de861 |
children | af8d823a3077 |
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 LICENSE="GPL2"
14 TARBALL="$SOURCE-$VERSION.tar.bz2"
15 WEB_SITE="http://www.olofson.net/kobodl"
16 WGET_URL="http://www.olofson.net/kobodl/download/$TARBALL"
17 TAGS="shooting"
19 DEPENDS="libsdl libsdl-image gcc-lib-base"
20 BUILD_DEPENDS="libsdl-dev libsdl-image-dev "
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 sed -i 's/pipe2/pipe_2/' enemy.cpp enemies.h
27 sed -i 's/strchr.txt/strchr((char *) txt/' graphics/window.cpp
28 ./configure \
29 --prefix=/usr \
30 --mandir=/usr/share/man \
31 --infodir=/usr/share/info \
32 --sharedstatedir=/var/games \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 # manually moving the pixmap and the .desktop
42 mkdir -p $install/usr/share/pixmaps
43 mkdir -p $install/usr/share/applications
44 tar xzf $src/icons.tar.gz -C $src
45 cp -a $src/icons/Ubuntu/*.xpm $install/usr/share/pixmaps
46 cp -a $src/icons/Ubuntu/*.desktop $install/usr/share/applications
48 mkdir -p $fs/usr
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/share $fs/usr/share
52 mkdir -p $fs/var/games/kobo-deluxe/scores
53 chmod 667 $fs/var/games/kobo-deluxe/scores
54 }
56 pre_remove()
57 {
58 rm -rf /var/games/kobo-deluxe/*
59 }