wok-6.x view gnome-games/receipt @ rev 24313

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 21 10:59:24 2022 +0000 (2022-01-21)
parents 86790a278e70
children
line source
1 # SliTaz package receipt.
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="https://www.gnome.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
13 # Games: aisleriot need guile. glchess use pygtk/mesa and is splitted
14 DEPENDS="clutter-gtk GConf guile libcanberra librsvg seed xorg-libXi"
15 BUILD_DEPENDS="GConf-dev librsvg-dev libcroco-dev mesa-dev clutter-dev \
16 clutter-gtk-dev python-dev pygtk-dev libcanberra-dev gnome-doc-utils-dev \
17 libvorbis-dev libogg-dev util-linux-uuid-dev seed-dev libtool guile-dev \
18 libffi-dev"
20 current_version()
21 {
22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
23 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure \
30 --sysconfdir=/etc \
31 --bindir=/usr/games \
32 --localstatedir=/var \
33 --disable-scrollkeeper \
34 --enable-introspection \
35 --enable-sound \
36 $CONFIGURE_ARGS &&
37 make && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib $fs/usr/share/$PACKAGE-common
45 cp -a $install/usr/games $fs/usr
46 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
47 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
48 cp -a $install/usr/share/$PACKAGE $fs/usr/share
49 cp -a $install/usr/share/$PACKAGE-common/cards \
50 $fs/usr/share/$PACKAGE-common
51 cp -a $install/usr/share/gir-1.0 $fs/usr/share
53 # Remove splitted games files
54 rm -f $fs/usr/games/glchess
55 rm -f $fs/usr/games/gnome-sudoku
56 rm -f $fs/usr/share/*/glchess.desktop
57 rm -f $fs/usr/share/*/gnome-sudoku.desktop
59 cp -a $install/var $fs
60 chmod a+w $fs/var/games/*
61 }