wok-next view kobodeluxe/receipt @ rev 21715

Up cookutils (1146)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 28 07:53:22 2020 +0000 (2020-07-28)
parents d5aab818505e
children
line source
1 # SliTaz package receipt v2.
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 VERSION="0.5.1"
9 CATEGORY="games"
10 SHORT_DESC="Third person scrolling 2D shooter game"
11 MAINTAINER="devel@slitaz.org"
12 LICENSE="GPL2"
13 WEB_SITE="http://www.olofson.net/kobodl/"
15 SOURCE="KoboDeluxe"
16 TARBALL="$SOURCE-$VERSION.tar.bz2"
17 WGET_URL="http://www.olofson.net/kobodl/download/$TARBALL"
19 BUILD_DEPENDS="sdl-dev sdl-image-dev"
21 compile_rules() {
22 sed -i 's/pipe2/pipe_2/' enemy.cpp enemies.h
23 sed -i 's/strchr.txt/strchr((char *) txt/' graphics/window.cpp
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=$install install
33 }
35 genpkg_rules() {
36 # manually moving the pixmap and the .desktop
37 mkdir -p $install/usr/share/pixmaps
38 mkdir -p $install/usr/share/applications
39 tar xzf $src/icons.tar.gz -C $src
40 cp -a $src/icons/Ubuntu/*.xpm $install/usr/share/pixmaps
41 cp -a $src/icons/Ubuntu/*.desktop $install/usr/share/applications
43 mkdir -p $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/share $fs/usr/share
47 mkdir -p $fs/var/games/kobo-deluxe/scores
48 chmod 667 $fs/var/games/kobo-deluxe/scores
49 DEPENDS="sdl sdl-image gcc-lib-base"
50 TAGS="shooting"
51 }
53 pre_remove() {
54 rm -rf /var/games/kobo-deluxe/*
55 }