wok-current annotate gnome-games/receipt @ rev 11207

Add from wok-undigest: gnome-games-glchess gnome-games-icons gnome-games-sudoku gnome-games gnome-js-common gnome-keyring gnome-vfs-monikers
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 03 11:15:24 2011 +0100 (2011-11-03)
parents
children 73641efed1cc
rev   line source
pascal@11207 1 # SliTaz package receipt.
pascal@11207 2
pascal@11207 3 PACKAGE="gnome-games"
pascal@11207 4 VERSION="2.32.1"
pascal@11207 5 CATEGORY="games"
pascal@11207 6 SHORT_DESC="A set of of simple games from Gnome."
pascal@11207 7 MAINTAINER="pankso@slitaz.org"
pascal@11207 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@11207 9 WEB_SITE="http://www.gnome.org/"
pascal@11207 10 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
pascal@11207 11
pascal@11207 12 # Games: aisleriot need guile. glchess use pygtk/mesa and is splitted
pascal@11207 13 DEPENDS="GConf librsvg libcroco mesa clutter clutter-gtk libcanberra \
pascal@11207 14 libvorbis libogg util-linux-ng-uuid gnuchess gnome-games-icons seed"
pascal@11207 15 BUILD_DEPENDS="GConf-dev librsvg-dev libcroco-dev mesa-dev clutter-dev \
pascal@11207 16 clutter-gtk-dev python-dev pygtk-dev libcanberra-dev gnome-doc-utils-dev \
pascal@11207 17 libvorbis-dev libogg-dev util-linux-ng-uuid-dev seed-dev"
pascal@11207 18
pascal@11207 19 # Rules to configure and make the package.
pascal@11207 20 compile_rules()
pascal@11207 21 {
pascal@11207 22 cd $src
pascal@11207 23 ./configure \
pascal@11207 24 --bindir=/usr/games \
pascal@11207 25 --sysconfdir=/etc \
pascal@11207 26 --localstatedir=/var \
pascal@11207 27 --enable-omitgames=aisleriot \
pascal@11207 28 --disable-scrollkeeper \
pascal@11207 29 $CONFIGURE_ARGS &&
pascal@11207 30 make && make install &&
pascal@11207 31 rm $DESTDIR/usr/share/*/glchess.desktop &&
pascal@11207 32 rm $DESTDIR/usr/share/*/gnome-sudoku.desktop
pascal@11207 33 }
pascal@11207 34
pascal@11207 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11207 36 genpkg_rules()
pascal@11207 37 {
pascal@11207 38 mkdir -p $fs/usr/lib $fs/usr/share
pascal@11207 39
pascal@11207 40 cp -a $install/usr/games $fs/usr
pascal@11207 41 cp -a $install/usr/share/$PACKAGE $fs/usr/share
pascal@11207 42
pascal@11207 43 # Remove splitted games files
pascal@11207 44 rm -f $fs/usr/games/glchess
pascal@11207 45 rm -f $fs/usr/games/gnome-sudoku
pascal@11207 46
pascal@11207 47 cp -a $install/var $fs
pascal@11207 48 chmod a+w $fs/var/games/*
pascal@11207 49 }