wok-current annotate kobodeluxe/receipt @ rev 12861
Up: sqlite to 3.7.12.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 24 20:50:37 2012 +0000 (2012-05-24) |
parents | 8d3f3ded1725 |
children | 23c3aed67cd9 |
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 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@1136 | 14 WEB_SITE="http://www.olofson.net/kobodl" |
pascal@1136 | 15 WGET_URL="http://www.olofson.net/kobodl/download/$TARBALL" |
pascal@5002 | 16 DEPENDS="libsdl libsdl-image gcc-lib-base" |
pankso@3425 | 17 BUILD_DEPENDS="libsdl-dev libsdl-image-dev " |
jozee@4942 | 18 TAGS="shooting" |
pascal@1136 | 19 |
pascal@1136 | 20 # Rules to configure and make the package. |
pascal@1136 | 21 compile_rules() |
pascal@1136 | 22 { |
pascal@1136 | 23 cd $src |
pascal@4289 | 24 sed -i 's/pipe2/pipe_2/' enemy.cpp enemies.h |
pascal@4289 | 25 sed -i 's/strchr.txt/strchr((char *) txt/' graphics/window.cpp |
pascal@1136 | 26 ./configure \ |
pascal@1136 | 27 --prefix=/usr \ |
pascal@1136 | 28 --mandir=/usr/share/man \ |
pascal@1136 | 29 --infodir=/usr/share/info \ |
mallory@1813 | 30 --sharedstatedir=/var/games \ |
pascal@4289 | 31 $CONFIGURE_ARGS && |
pascal@4289 | 32 make && |
pascal@1136 | 33 make DESTDIR=$PWD/_pkg install |
pascal@1136 | 34 } |
pascal@1136 | 35 |
pascal@1136 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1136 | 37 genpkg_rules() |
pascal@1136 | 38 { |
pascal@1136 | 39 # manually moving the pixmap and the .desktop |
pascal@1136 | 40 mkdir -p $_pkg/usr/share/pixmaps |
pascal@1136 | 41 mkdir -p $_pkg/usr/share/applications |
erjo@5170 | 42 tar xzf $src/icons.tar.gz -C $src |
pascal@1136 | 43 cp -a $src/icons/Ubuntu/*.xpm $_pkg/usr/share/pixmaps |
pascal@1136 | 44 cp -a $src/icons/Ubuntu/*.desktop $_pkg/usr/share/applications |
pascal@1136 | 45 |
pascal@1136 | 46 mkdir -p $fs/usr |
pascal@1136 | 47 cp -a $_pkg/usr/bin $fs/usr |
pascal@1136 | 48 cp -a $_pkg/usr/share $fs/usr/share |
mallory@1813 | 49 |
mallory@1813 | 50 mkdir -p $fs/var/games/kobo-deluxe/scores |
mallory@1813 | 51 chmod 667 $fs/var/games/kobo-deluxe/scores |
pascal@1136 | 52 } |
mallory@1813 | 53 |
mallory@1813 | 54 pre_remove() |
mallory@1813 | 55 { |
mallory@1813 | 56 rm -rf /var/games/kobo-deluxe/* |
mallory@1813 | 57 } |