wok-next view gnome-games/receipt @ rev 20299

Up remmina (1.2.0-rcgit.24)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 09 22:26:00 2017 +0100 (2017-11-09)
parents cd5ce06b1fb3
children 524536e9b2d4
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gnome-games"
4 VERSION="2.32.1"
5 CATEGORY="games"
6 SHORT_DESC="A set of of simple games from Gnome."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.gnome.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
13 # Games: aisleriot need guile. glchess use pygtk/mesa and is splitted
14 BUILD_DEPENDS="GConf-dev librsvg-dev libcroco-dev mesa-dev clutter-dev \
15 clutter-gtk-dev python-dev pygtk-dev libcanberra-dev gnome-doc-utils-dev \
16 libvorbis-dev libogg-dev util-linux-uuid-dev seed-dev libtool guile-dev \
17 libffi-dev"
18 SPLIT="gnome-games-glchess gnome-games-icons gnome-games-sudoku"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure \
24 --sysconfdir=/etc \
25 --bindir=/usr/games \
26 --localstatedir=/var \
27 --disable-scrollkeeper \
28 --enable-introspection \
29 --enable-sound \
30 $CONFIGURE_ARGS &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 case $PACKAGE in
38 gnome-games)
39 DEPENDS="clutter-gtk GConf guile libcanberra librsvg seed xorg-libXi"
40 mkdir -p $fs/usr/lib $fs/usr/share/$PACKAGE-common
42 cp -a $install/usr/games $fs/usr
43 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
44 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
45 cp -a $install/usr/share/$PACKAGE $fs/usr/share
46 cp -a $install/usr/share/$PACKAGE-common/cards \
47 $fs/usr/share/$PACKAGE-common
48 cp -a $install/usr/share/gir-1.0 $fs/usr/share
50 # Remove splitted games files
51 rm -f $fs/usr/games/glchess
52 rm -f $fs/usr/games/gnome-sudoku
53 rm -f $fs/usr/share/*/glchess.desktop
54 rm -f $fs/usr/share/*/gnome-sudoku.desktop
56 cp -a $install/var $fs
57 chmod a+w $fs/var/games/*
58 ;;
59 gnome-games-glchess)
60 CAT="games|Chess game using GL/Mesa."
61 TAGS="chess"
62 DEPENDS="mesa python gnuchess gnome-games-icons"
63 game=glchess
64 mkdir -p \
65 $fs/usr/games $fs/usr/lib \
66 $fs/usr/share/applications
68 cp -a $install/usr/games/$game $fs/usr/games
69 cp -a $install/usr/lib/python* $fs/usr/lib
70 rm -rf $fs/usr/lib/python*/*/gnome_sudoku
71 cp -a $install/usr/share/$game $fs/usr/share
73 cp $src/$game/$game.desktop $fs/usr/share/applications
74 ;;
75 gnome-games-icons)
76 CAT="games|Gnome games icons set."
77 DEPENDS="gnome-games"
78 mkdir -p $fs/usr/share
79 cp -a $install/usr/share/icons $fs/usr/share
80 rm -rf $fs/usr/share/icons/hicolor/scalable
81 ;;
82 gnome-games-sudoku)
83 CAT="games|Gnome sudoku game."
84 DEPENDS="python pygtk python-gconf gnome-games-icons"
85 game=gnome-sudoku
86 mkdir -p \
87 $fs/usr/games $fs/usr/lib \
88 $fs/usr/share/applications
90 cp -a $install/usr/games/$game $fs/usr/games
91 cp -a $install/usr/lib/python* $fs/usr/lib
92 rm -rf $fs/usr/lib/python*/*/glchess
93 cp -a $install/usr/share/$game $fs/usr/share
95 cp $src/$game/$game.desktop $fs/usr/share/applications
96 ;;
97 esac
98 }