wok-6.x annotate kobodeluxe/receipt @ rev 4712
Up: ntfs-3g* (2009.11.14)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Jan 04 21:52:33 2010 +0100 (2010-01-04) |
parents | 2c679ce49f4c |
children | 9bac91257596 |
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@1136 | 13 |
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@1136 | 17 |
pankso@3429 | 18 DEPENDS="libsdl libsdl-image " |
pankso@3425 | 19 BUILD_DEPENDS="libsdl-dev libsdl-image-dev " |
pascal@1136 | 20 |
pascal@1136 | 21 # Rules to configure and make the package. |
pascal@1136 | 22 compile_rules() |
pascal@1136 | 23 { |
pascal@1136 | 24 cd $src |
pascal@4289 | 25 sed -i 's/pipe2/pipe_2/' enemy.cpp enemies.h |
pascal@4289 | 26 sed -i 's/strchr.txt/strchr((char *) txt/' graphics/window.cpp |
pascal@1136 | 27 ./configure \ |
pascal@1136 | 28 --prefix=/usr \ |
pascal@1136 | 29 --mandir=/usr/share/man \ |
pascal@1136 | 30 --infodir=/usr/share/info \ |
mallory@1813 | 31 --sharedstatedir=/var/games \ |
pascal@4289 | 32 $CONFIGURE_ARGS && |
pascal@4289 | 33 make && |
pascal@1136 | 34 make DESTDIR=$PWD/_pkg install |
pascal@1136 | 35 } |
pascal@1136 | 36 |
pascal@1136 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1136 | 38 genpkg_rules() |
pascal@1136 | 39 { |
pascal@1136 | 40 # manually moving the pixmap and the .desktop |
pascal@1136 | 41 mkdir -p $_pkg/usr/share/pixmaps |
pascal@1136 | 42 mkdir -p $_pkg/usr/share/applications |
pascal@1136 | 43 tar xvf $src/icons.tar.gz -C $src |
pascal@1136 | 44 cp -a $src/icons/Ubuntu/*.xpm $_pkg/usr/share/pixmaps |
pascal@1136 | 45 cp -a $src/icons/Ubuntu/*.desktop $_pkg/usr/share/applications |
pascal@1136 | 46 |
pascal@1136 | 47 mkdir -p $fs/usr |
pascal@1136 | 48 cp -a $_pkg/usr/bin $fs/usr |
pascal@1136 | 49 cp -a $_pkg/usr/share $fs/usr/share |
mallory@1813 | 50 |
mallory@1813 | 51 mkdir -p $fs/var/games/kobo-deluxe/scores |
mallory@1813 | 52 chmod 667 $fs/var/games/kobo-deluxe/scores |
pascal@1136 | 53 } |
mallory@1813 | 54 |
mallory@1813 | 55 pre_remove() |
mallory@1813 | 56 { |
mallory@1813 | 57 rm -rf /var/games/kobo-deluxe/* |
mallory@1813 | 58 } |