wok-current annotate kobodeluxe/receipt @ rev 19589
Add fbvis
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 29 13:20:31 2016 +0100 (2016-12-29) |
parents | 8d8c479de861 |
children | af8d823a3077 |
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@1136 | 22 # Rules to configure and make the package. |
pascal@1136 | 23 compile_rules() |
pascal@1136 | 24 { |
pascal@1136 | 25 cd $src |
pascal@4289 | 26 sed -i 's/pipe2/pipe_2/' enemy.cpp enemies.h |
pascal@4289 | 27 sed -i 's/strchr.txt/strchr((char *) txt/' graphics/window.cpp |
pascal@1136 | 28 ./configure \ |
pascal@1136 | 29 --prefix=/usr \ |
pascal@1136 | 30 --mandir=/usr/share/man \ |
pascal@1136 | 31 --infodir=/usr/share/info \ |
mallory@1813 | 32 --sharedstatedir=/var/games \ |
pascal@4289 | 33 $CONFIGURE_ARGS && |
pascal@4289 | 34 make && |
pascal@15601 | 35 make DESTDIR=$DESTDIR install |
pascal@1136 | 36 } |
pascal@1136 | 37 |
pascal@1136 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1136 | 39 genpkg_rules() |
pascal@1136 | 40 { |
pascal@1136 | 41 # manually moving the pixmap and the .desktop |
pascal@15601 | 42 mkdir -p $install/usr/share/pixmaps |
pascal@15601 | 43 mkdir -p $install/usr/share/applications |
erjo@5170 | 44 tar xzf $src/icons.tar.gz -C $src |
pascal@15601 | 45 cp -a $src/icons/Ubuntu/*.xpm $install/usr/share/pixmaps |
pascal@15601 | 46 cp -a $src/icons/Ubuntu/*.desktop $install/usr/share/applications |
pascal@1136 | 47 |
pascal@1136 | 48 mkdir -p $fs/usr |
pascal@15601 | 49 cp -a $install/usr/bin $fs/usr |
pascal@15601 | 50 cp -a $install/usr/share $fs/usr/share |
mallory@1813 | 51 |
mallory@1813 | 52 mkdir -p $fs/var/games/kobo-deluxe/scores |
mallory@1813 | 53 chmod 667 $fs/var/games/kobo-deluxe/scores |
pascal@1136 | 54 } |
mallory@1813 | 55 |
mallory@1813 | 56 pre_remove() |
mallory@1813 | 57 { |
mallory@1813 | 58 rm -rf /var/games/kobo-deluxe/* |
mallory@1813 | 59 } |