wok-6.x view kobodeluxe/receipt @ rev 24699
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 19:47:29 2022 +0000 (2022-03-13) |
parents | 23c3aed67cd9 |
children |
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 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - http://www.olofson.net/kobodl/download.html 2>/dev/null | \
26 sed 's|>|>\n|g' | sed '/KoboDeluxe-/!d;/tar/!d;s|.*KoboDeluxe-||;s|.tar.*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 cd $src
33 sed -i 's/pipe2/pipe_2/' enemy.cpp enemies.h
34 sed -i 's/strchr.txt/strchr((char *) txt/' graphics/window.cpp
35 ./configure \
36 --prefix=/usr \
37 --mandir=/usr/share/man \
38 --infodir=/usr/share/info \
39 --sharedstatedir=/var/games \
40 $CONFIGURE_ARGS &&
41 make &&
42 make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 # manually moving the pixmap and the .desktop
49 mkdir -p $install/usr/share/pixmaps
50 mkdir -p $install/usr/share/applications
51 tar xzf $src/icons.tar.gz -C $src
52 cp -a $src/icons/Ubuntu/*.xpm $install/usr/share/pixmaps
53 cp -a $src/icons/Ubuntu/*.desktop $install/usr/share/applications
55 mkdir -p $fs/usr
56 cp -a $install/usr/bin $fs/usr
57 cp -a $install/usr/share $fs/usr/share
59 mkdir -p $fs/var/games/kobo-deluxe/scores
60 chmod 667 $fs/var/games/kobo-deluxe/scores
61 }
63 pre_remove()
64 {
65 rm -rf /var/games/kobo-deluxe/*
66 }