wok-6.x annotate 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 |
rev | line source |
---|---|
pascal@11207 | 1 # SliTaz package receipt. |
pascal@11207 | 2 |
pascal@11207 | 3 PACKAGE="gnome-games" |
pascal@11207 | 4 VERSION="2.32.1" |
pascal@11207 | 5 CATEGORY="games" |
pascal@11207 | 6 SHORT_DESC="A set of of simple games from Gnome." |
pascal@11207 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@11207 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@20421 | 10 WEB_SITE="https://www.gnome.org/" |
pascal@11207 | 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
pascal@11207 | 12 |
pascal@11207 | 13 # Games: aisleriot need guile. glchess use pygtk/mesa and is splitted |
llevrel@18857 | 14 DEPENDS="clutter-gtk GConf guile libcanberra librsvg seed xorg-libXi" |
pascal@11207 | 15 BUILD_DEPENDS="GConf-dev librsvg-dev libcroco-dev mesa-dev clutter-dev \ |
pascal@11207 | 16 clutter-gtk-dev python-dev pygtk-dev libcanberra-dev gnome-doc-utils-dev \ |
al@13936 | 17 libvorbis-dev libogg-dev util-linux-uuid-dev seed-dev libtool guile-dev \ |
al@13936 | 18 libffi-dev" |
pascal@11207 | 19 |
pascal@24111 | 20 current_version() |
pascal@24111 | 21 { |
pascal@24111 | 22 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24111 | 23 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24111 | 24 } |
pascal@24111 | 25 |
pascal@11207 | 26 # Rules to configure and make the package. |
pascal@11207 | 27 compile_rules() |
pascal@11207 | 28 { |
pascal@11207 | 29 ./configure \ |
pascal@13796 | 30 --sysconfdir=/etc \ |
pascal@11207 | 31 --bindir=/usr/games \ |
pascal@11207 | 32 --localstatedir=/var \ |
pascal@11207 | 33 --disable-scrollkeeper \ |
llevrel@18857 | 34 --enable-introspection \ |
al@13936 | 35 --enable-sound \ |
pascal@11207 | 36 $CONFIGURE_ARGS && |
al@13936 | 37 make && make install |
pascal@11207 | 38 } |
pascal@11207 | 39 |
pascal@11207 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11207 | 41 genpkg_rules() |
pascal@11207 | 42 { |
llevrel@18857 | 43 mkdir -p $fs/usr/lib $fs/usr/share/$PACKAGE-common |
llevrel@18857 | 44 |
pascal@11207 | 45 cp -a $install/usr/games $fs/usr |
llevrel@18857 | 46 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib |
llevrel@18857 | 47 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib |
pascal@11207 | 48 cp -a $install/usr/share/$PACKAGE $fs/usr/share |
llevrel@18857 | 49 cp -a $install/usr/share/$PACKAGE-common/cards \ |
llevrel@18857 | 50 $fs/usr/share/$PACKAGE-common |
llevrel@18857 | 51 cp -a $install/usr/share/gir-1.0 $fs/usr/share |
pascal@11207 | 52 |
pascal@11207 | 53 # Remove splitted games files |
pascal@11207 | 54 rm -f $fs/usr/games/glchess |
pascal@11207 | 55 rm -f $fs/usr/games/gnome-sudoku |
al@13936 | 56 rm -f $fs/usr/share/*/glchess.desktop |
al@13936 | 57 rm -f $fs/usr/share/*/gnome-sudoku.desktop |
llevrel@18857 | 58 |
pascal@11207 | 59 cp -a $install/var $fs |
pascal@11207 | 60 chmod a+w $fs/var/games/* |
pascal@11207 | 61 } |