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