wok-current annotate kobodeluxe/receipt @ rev 2723

Add: cdrdao, cdrdao-utils
author Rohit Joshi <jozee@slitaz.org>
date Fri Apr 24 07:25:20 2009 +0000 (2009-04-24)
parents c6f726ea3fd3
children e8024c01fc47
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
pascal@2091 18 DEPENDS="libSDL libsdl-image libiconv"
pascal@1136 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@1136 25 ./configure \
pascal@1136 26 --prefix=/usr \
pascal@1136 27 --mandir=/usr/share/man \
pascal@1136 28 --infodir=/usr/share/info \
mallory@1813 29 --sharedstatedir=/var/games \
pascal@1136 30 $CONFIGURE_ARGS
pascal@1136 31 make
pascal@1136 32 make DESTDIR=$PWD/_pkg install
pascal@1136 33 }
pascal@1136 34
pascal@1136 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1136 36 genpkg_rules()
pascal@1136 37 {
pascal@1136 38 # manually moving the pixmap and the .desktop
pascal@1136 39 mkdir -p $_pkg/usr/share/pixmaps
pascal@1136 40 mkdir -p $_pkg/usr/share/applications
pascal@1136 41 tar xvf $src/icons.tar.gz -C $src
pascal@1136 42 cp -a $src/icons/Ubuntu/*.xpm $_pkg/usr/share/pixmaps
pascal@1136 43 cp -a $src/icons/Ubuntu/*.desktop $_pkg/usr/share/applications
pascal@1136 44
pascal@1136 45 mkdir -p $fs/usr
pascal@1136 46 cp -a $_pkg/usr/bin $fs/usr
pascal@1136 47 cp -a $_pkg/usr/share $fs/usr/share
mallory@1813 48
mallory@1813 49 mkdir -p $fs/var/games/kobo-deluxe/scores
mallory@1813 50 chmod 667 $fs/var/games/kobo-deluxe/scores
pascal@1136 51 }
mallory@1813 52
mallory@1813 53 pre_remove()
mallory@1813 54 {
mallory@1813 55 rm -rf /var/games/kobo-deluxe/*
mallory@1813 56 }