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

oxine: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 27 12:51:30 2018 +0200 (2018-04-27)
parents d24a2d3884ee
children 618256f7a332
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gnome-games"
4 VERSION="2.32.1"
5 CATEGORY="meta"
6 SHORT_DESC="Simple games from GNOME"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.gnome.org/Apps/Games"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
14 BUILD_DEPENDS="glib-dev gtk+-dev GConf-dev librsvg-dev clutter-dev \
15 clutter-gtk-dev pygtk-dev libcanberra-dev intltool guile-dev \
16 gnome-doc-utils xorg-libSM-dev xorg-libICE-dev gobject-introspection-dev"
18 gg='gnome-games'
19 SPLIT="\
20 $gg-aisleriot $gg-glchess $gg-glines $gg-gnect $gg-gnibbles \
21 $gg-gnobots2 $gg-sudoku $gg-gnomine $gg-gnotravex $gg-gnotski \
22 $gg-gtali $gg-iagno $gg-lightsoff $gg-mahjongg $gg-quadrapassel \
23 $gg-swell-foop $gg-common $gg-help $gg $gg-dev"
25 compile_rules() {
26 ./configure \
27 --bindir=/usr/games \
28 --disable-scrollkeeper \
29 --enable-introspection \
30 --enable-sound \
31 $CONFIGURE_ARGS &&
32 fix libtool &&
33 make &&
34 make install || return 1
36 chmod a+w $install/var/games/*.scores
37 }
39 genpkg_rules() {
40 COOKOPTS="!menus"
41 game=${PACKAGE/gnome-games-/}
42 case $game in
43 aisleriot) bin='sol';;
44 glchess) bin='glchess gnome-gnuchess';;
45 sudoku) bin='gnome-sudoku';;
46 *) bin="$game";;
47 esac
48 case $game in
49 glchess) py='site-packages/glchess/';;
50 sudoku) py='site-packages/gnome_sudoku/';;
51 *) py='';;
52 esac
53 case $game in
54 aisleriot) desktop='freecell.desktop sol.desktop';;
55 sudoku) desktop='gnome-sudoku.desktop';;
56 *) desktop="$game.desktop";;
57 esac
58 case $game in
59 aisleriot) icon='gnome-freecell.png gnome-aisleriot.png';;
60 gnotski) icon='gnome-klotski.png';;
61 gnomine) icon='gnome-mines.png';;
62 gnobots2) icon='gnome-robots.png';;
63 gtali) icon='gnome-tali.png';;
64 gnotravex) icon='gnome-tetravex.png';;
65 *) icon="gnome-$game.png";;
66 esac
67 case $game in
68 glchess) share='share/glchess/';;
69 sudoku) share='share/gnome-sudoku/';;
70 *) share="share/gnome-games/$game/";;
71 esac
72 case $game in
73 glines|gnibbles|gnobots2|gnomine|gnotravex|gnotski|gtali|mahjongg|quadrapassel)
74 scores="var/games/$game*.scores";;
75 *) scores='';;
76 esac
77 case $game in
78 sudoku) schemas='gnome-sudoku.schemas';;
79 *) schemas="$game.schemas";;
80 esac
82 case $game in
83 gnome-games) ;;
84 dev) copy @dev;;
85 help) copy gnome/help/ omf/;;
86 common) copy sounds/ gnome-games-common/ \
87 share/gnome-games/icons/ share/gnome-games/pixmaps/ \
88 lib/gnome-games/ar-cards-renderer lib/gnome-games/*.so* ;;
89 *) copy $bin $py $desktop $icon ${icon//.png/.svg} $share $scores \
90 $schemas;;
91 esac
93 DEPENDS="gnome-games-common"
94 case $PACKAGE in
95 *-common)
96 CAT="games|common files"
97 DEPENDS="GConf atk bzlib cairo fontconfig freetype gdk-pixbuf glib \
98 gtk+ libcanberra libcanberra-gtk2 libcroco libffi libharfbuzz \
99 libltdl liblzma libogg libpng16 librsvg libvorbis libxml2 orbit2 \
100 pango pcre util-linux-blkid util-linux-mount util-linux-uuid \
101 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXdmcp \
102 xorg-libXext xorg-libXrender xorg-libxcb xorg-pixman zlib"
103 ;;
104 *-aisleriot)
105 CAT="games|collection of over 80 card games"
106 DEPENDS="gnome-games-common gmp guile"
107 ;;
108 *-glchess)
109 CAT="games|classic board game of chess"
110 DEPENDS="gnome-games-common pygtk mesa"
111 TAGS="chess"
112 ;;
113 *-glines)
114 CAT="games|Five or More"
115 ;;
116 *-gnect)
117 CAT="games|Four-in-a-Row"
118 ;;
119 *-gnibbles)
120 CAT="games|Nibbles"
121 DEPENDS="gnome-games-common clutter clutter-gtk cogl json-glib \
122 libdrm mesa-libegl mesa-libgbm mesa-libwayland-egl wayland \
123 xorg-libXcomposite xorg-libXdamage xorg-libXfixes xorg-libXrandr"
124 ;;
125 *-gnobots2)
126 CAT="games|Robots"
127 ;;
128 *-sudoku)
129 CAT="games|Sudoku"
130 DEPENDS="gnome-games-common pygtk"
131 ;;
132 *-gnomine)
133 CAT="games|Mines"
134 ;;
135 *-gnotravex)
136 CAT="games|Tetravex"
137 ;;
138 *-gnotski)
139 CAT="games|Klotski"
140 ;;
141 *-gtali)
142 CAT="games|Tali"
143 ;;
144 *-iagno)
145 CAT="games|Reversi"
146 ;;
147 *-lightsoff)
148 CAT="games|Lights Off"
149 DEPENDS="gnome-games-common seed"
150 ;;
151 *-mahjongg)
152 CAT="games|Mahjongg"
153 ;;
154 *-quadrapassel)
155 CAT="games|Quadrapassel"
156 DEPENDS="gnome-games-common clutter clutter-gtk cogl json-glib \
157 libdrm mesa-libegl mesa-libgbm mesa-libwayland-egl wayland \
158 xorg-libXcomposite xorg-libXdamage xorg-libXfixes xorg-libXrandr"
159 ;;
160 *-swell-foop)
161 CAT="games|Swell Foop"
162 DEPENDS="gnome-games-common seed"
163 ;;
164 *-help)
165 CAT="gnome|help files"
166 ;;
167 gnome-games)
168 CAT="meta|full set"
169 DEPENDS="$gg-aisleriot $gg-glchess $gg-glines $gg-gnect \
170 $gg-gnibbles $gg-gnobots2 $gg-sudoku $gg-gnomine $gg-gnotravex \
171 $gg-gnotski $gg-gtali $gg-iagno $gg-lightsoff $gg-mahjongg \
172 $gg-quadrapassel $gg-swell-foop"
173 ;;
174 *-dev)
175 DEPENDS="GConf-dev atk-dev bzip2-dev cairo-dev fontconfig-dev \
176 freetype-dev gdk-pixbuf-dev glib-dev gtk+-dev harfbuzz-dev \
177 libcanberra-dev libcroco-dev libffi-dev libogg-dev libpng16-dev \
178 librsvg-dev libtool libvorbis-dev libxml2-dev orbit2-dev pango-dev \
179 pcre-dev util-linux-blkid-dev util-linux-mount-dev \
180 util-linux-uuid-dev xorg-libICE-dev xorg-libSM-dev xorg-libX11-dev \
181 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \
182 xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
183 ;;
184 esac
185 }