wok annotate kobodeluxe/receipt @ rev 24526

updated exempi and exempi-dev (2.5.1 -> 2.6.1)
author Hans-G?nter Theisgen
date Tue Feb 22 17:39:50 2022 +0100 (2022-02-22)
parents 23c3aed67cd9
children
rev   line source
pascal@1136 1 # SliTaz package receipt.
pascal@1136 2
pascal@1136 3 # TODO : Regularly check if the install script automatically
pascal@1136 4 # installs the pixmap and the .desktop file. Then remove the
pascal@1136 5 # part in genpkg_rules() where it's done manually.
pascal@1136 6
pascal@1136 7 PACKAGE="kobodeluxe"
pascal@1136 8 SOURCE="KoboDeluxe"
pascal@1136 9 VERSION="0.5.1"
pascal@1136 10 CATEGORY="games"
pascal@1136 11 SHORT_DESC="Kobo Deluxe is a third person scrolling 2D shooter game."
pascal@1136 12 MAINTAINER="chadi.elahmad@gmail.com"
pascal@15601 13 LICENSE="GPL2"
pascal@1136 14 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@1136 15 WEB_SITE="http://www.olofson.net/kobodl"
pascal@1136 16 WGET_URL="http://www.olofson.net/kobodl/download/$TARBALL"
pascal@15601 17 TAGS="shooting"
pascal@15601 18
pascal@5002 19 DEPENDS="libsdl libsdl-image gcc-lib-base"
pankso@3425 20 BUILD_DEPENDS="libsdl-dev libsdl-image-dev "
pascal@1136 21
pascal@24445 22 # What is the latest version available today?
pascal@24445 23 current_version()
pascal@24445 24 {
pascal@24445 25 wget -O - http://www.olofson.net/kobodl/download.html 2>/dev/null | \
pascal@24445 26 sed 's|>|>\n|g' | sed '/KoboDeluxe-/!d;/tar/!d;s|.*KoboDeluxe-||;s|.tar.*||;q'
pascal@24445 27 }
pascal@24445 28
pascal@1136 29 # Rules to configure and make the package.
pascal@1136 30 compile_rules()
pascal@1136 31 {
pascal@1136 32 cd $src
pascal@4289 33 sed -i 's/pipe2/pipe_2/' enemy.cpp enemies.h
pascal@4289 34 sed -i 's/strchr.txt/strchr((char *) txt/' graphics/window.cpp
pascal@1136 35 ./configure \
pascal@1136 36 --prefix=/usr \
pascal@1136 37 --mandir=/usr/share/man \
pascal@1136 38 --infodir=/usr/share/info \
mallory@1813 39 --sharedstatedir=/var/games \
pascal@4289 40 $CONFIGURE_ARGS &&
pascal@4289 41 make &&
pascal@15601 42 make DESTDIR=$DESTDIR install
pascal@1136 43 }
pascal@1136 44
pascal@1136 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1136 46 genpkg_rules()
pascal@1136 47 {
pascal@1136 48 # manually moving the pixmap and the .desktop
pascal@15601 49 mkdir -p $install/usr/share/pixmaps
pascal@15601 50 mkdir -p $install/usr/share/applications
erjo@5170 51 tar xzf $src/icons.tar.gz -C $src
pascal@15601 52 cp -a $src/icons/Ubuntu/*.xpm $install/usr/share/pixmaps
pascal@15601 53 cp -a $src/icons/Ubuntu/*.desktop $install/usr/share/applications
pascal@1136 54
pascal@1136 55 mkdir -p $fs/usr
pascal@15601 56 cp -a $install/usr/bin $fs/usr
pascal@15601 57 cp -a $install/usr/share $fs/usr/share
mallory@1813 58
mallory@1813 59 mkdir -p $fs/var/games/kobo-deluxe/scores
mallory@1813 60 chmod 667 $fs/var/games/kobo-deluxe/scores
pascal@1136 61 }
mallory@1813 62
mallory@1813 63 pre_remove()
mallory@1813 64 {
mallory@1813 65 rm -rf /var/games/kobo-deluxe/*
mallory@1813 66 }