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

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