wok-next rev 20162
gnome-games: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 01 17:34:03 2017 +0100 (2017-11-01) |
parents | a4aa43fbd3eb |
children | 4bedcbdcbef2 |
files | gnome-games-glchess/receipt gnome-games-icons/receipt gnome-games-sudoku/receipt gnome-games/receipt |
line diff
1.1 --- a/gnome-games-glchess/receipt Wed Nov 01 17:25:59 2017 +0100 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,29 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="gnome-games-glchess" 1.7 -VERSION="2.32.1" 1.8 -CATEGORY="games" 1.9 -SHORT_DESC="Chess game using GL/Mesa." 1.10 -MAINTAINER="pankso@slitaz.org" 1.11 -LICENSE="GPL2" 1.12 -WEB_SITE="http://www.gnome.org/" 1.13 -WANTED="gnome-games" 1.14 -TAGS="chess" 1.15 - 1.16 -DEPENDS="mesa python gnuchess gnome-games-icons" 1.17 - 1.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 -genpkg_rules() 1.20 -{ 1.21 - game=glchess 1.22 - mkdir -p \ 1.23 - $fs/usr/games $fs/usr/lib \ 1.24 - $fs/usr/share/applications 1.25 - 1.26 - cp -a $install/usr/games/$game $fs/usr/games 1.27 - cp -a $install/usr/lib/python* $fs/usr/lib 1.28 - rm -rf $fs/usr/lib/python*/*/gnome_sudoku 1.29 - cp -a $install/usr/share/$game $fs/usr/share 1.30 - 1.31 - cp $src/$game/$game.desktop $fs/usr/share/applications 1.32 -}
2.1 --- a/gnome-games-icons/receipt Wed Nov 01 17:25:59 2017 +0100 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,20 +0,0 @@ 2.4 -# SliTaz package receipt. 2.5 - 2.6 -PACKAGE="gnome-games-icons" 2.7 -VERSION="2.32.1" 2.8 -CATEGORY="games" 2.9 -SHORT_DESC="Gnome games icons set." 2.10 -MAINTAINER="pankso@slitaz.org" 2.11 -LICENSE="GPL2" 2.12 -WEB_SITE="http://www.gnome.org/" 2.13 -WANTED="gnome-games" 2.14 - 2.15 -DEPENDS="gnome-games" 2.16 - 2.17 -# Rules to gen a SliTaz package suitable for Tazpkg. 2.18 -genpkg_rules() 2.19 -{ 2.20 - mkdir -p $fs/usr/share 2.21 - cp -a $install/usr/share/icons $fs/usr/share 2.22 - rm -rf $fs/usr/share/icons/hicolor/scalable 2.23 -}
3.1 --- a/gnome-games-sudoku/receipt Wed Nov 01 17:25:59 2017 +0100 3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 3.3 @@ -1,28 +0,0 @@ 3.4 -# SliTaz package receipt. 3.5 - 3.6 -PACKAGE="gnome-games-sudoku" 3.7 -VERSION="2.32.1" 3.8 -CATEGORY="games" 3.9 -SHORT_DESC="Gnome sudoku game." 3.10 -MAINTAINER="pankso@slitaz.org" 3.11 -LICENSE="GPL2" 3.12 -WEB_SITE="http://www.gnome.org/" 3.13 -WANTED="gnome-games" 3.14 - 3.15 -DEPENDS="python pygtk python-gconf gnome-games-icons" 3.16 - 3.17 -# Rules to gen a SliTaz package suitable for Tazpkg. 3.18 -genpkg_rules() 3.19 -{ 3.20 - game=gnome-sudoku 3.21 - mkdir -p \ 3.22 - $fs/usr/games $fs/usr/lib \ 3.23 - $fs/usr/share/applications 3.24 - 3.25 - cp -a $install/usr/games/$game $fs/usr/games 3.26 - cp -a $install/usr/lib/python* $fs/usr/lib 3.27 - rm -rf $fs/usr/lib/python*/*/glchess 3.28 - cp -a $install/usr/share/$game $fs/usr/share 3.29 - 3.30 - cp $src/$game/$game.desktop $fs/usr/share/applications 3.31 -}
4.1 --- a/gnome-games/receipt Wed Nov 01 17:25:59 2017 +0100 4.2 +++ b/gnome-games/receipt Wed Nov 01 17:34:03 2017 +0100 4.3 @@ -1,4 +1,4 @@ 4.4 -# SliTaz package receipt. 4.5 +# SliTaz package receipt v2. 4.6 4.7 PACKAGE="gnome-games" 4.8 VERSION="2.32.1" 4.9 @@ -11,11 +11,11 @@ 4.10 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" 4.11 4.12 # Games: aisleriot need guile. glchess use pygtk/mesa and is splitted 4.13 -DEPENDS="clutter-gtk GConf guile libcanberra librsvg seed xorg-libXi" 4.14 BUILD_DEPENDS="GConf-dev librsvg-dev libcroco-dev mesa-dev clutter-dev \ 4.15 clutter-gtk-dev python-dev pygtk-dev libcanberra-dev gnome-doc-utils-dev \ 4.16 libvorbis-dev libogg-dev util-linux-uuid-dev seed-dev libtool guile-dev \ 4.17 libffi-dev" 4.18 +SPLIT="gnome-games-glchess gnome-games-icons gnome-games-sudoku" 4.19 4.20 # Rules to configure and make the package. 4.21 compile_rules() 4.22 @@ -34,22 +34,65 @@ 4.23 # Rules to gen a SliTaz package suitable for Tazpkg. 4.24 genpkg_rules() 4.25 { 4.26 - mkdir -p $fs/usr/lib $fs/usr/share/$PACKAGE-common 4.27 + case $PACKAGE in 4.28 + gnome-games) 4.29 + DEPENDS="clutter-gtk GConf guile libcanberra librsvg seed xorg-libXi" 4.30 + mkdir -p $fs/usr/lib $fs/usr/share/$PACKAGE-common 4.31 4.32 - cp -a $install/usr/games $fs/usr 4.33 - cp -a $install/usr/lib/$PACKAGE $fs/usr/lib 4.34 - cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib 4.35 - cp -a $install/usr/share/$PACKAGE $fs/usr/share 4.36 - cp -a $install/usr/share/$PACKAGE-common/cards \ 4.37 - $fs/usr/share/$PACKAGE-common 4.38 - cp -a $install/usr/share/gir-1.0 $fs/usr/share 4.39 + cp -a $install/usr/games $fs/usr 4.40 + cp -a $install/usr/lib/$PACKAGE $fs/usr/lib 4.41 + cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib 4.42 + cp -a $install/usr/share/$PACKAGE $fs/usr/share 4.43 + cp -a $install/usr/share/$PACKAGE-common/cards \ 4.44 + $fs/usr/share/$PACKAGE-common 4.45 + cp -a $install/usr/share/gir-1.0 $fs/usr/share 4.46 4.47 - # Remove splitted games files 4.48 - rm -f $fs/usr/games/glchess 4.49 - rm -f $fs/usr/games/gnome-sudoku 4.50 - rm -f $fs/usr/share/*/glchess.desktop 4.51 - rm -f $fs/usr/share/*/gnome-sudoku.desktop 4.52 + # Remove splitted games files 4.53 + rm -f $fs/usr/games/glchess 4.54 + rm -f $fs/usr/games/gnome-sudoku 4.55 + rm -f $fs/usr/share/*/glchess.desktop 4.56 + rm -f $fs/usr/share/*/gnome-sudoku.desktop 4.57 4.58 - cp -a $install/var $fs 4.59 - chmod a+w $fs/var/games/* 4.60 + cp -a $install/var $fs 4.61 + chmod a+w $fs/var/games/* 4.62 + ;; 4.63 + gnome-games-glchess) 4.64 + CAT="games|Chess game using GL/Mesa." 4.65 + TAGS="chess" 4.66 + DEPENDS="mesa python gnuchess gnome-games-icons" 4.67 + game=glchess 4.68 + mkdir -p \ 4.69 + $fs/usr/games $fs/usr/lib \ 4.70 + $fs/usr/share/applications 4.71 + 4.72 + cp -a $install/usr/games/$game $fs/usr/games 4.73 + cp -a $install/usr/lib/python* $fs/usr/lib 4.74 + rm -rf $fs/usr/lib/python*/*/gnome_sudoku 4.75 + cp -a $install/usr/share/$game $fs/usr/share 4.76 + 4.77 + cp $src/$game/$game.desktop $fs/usr/share/applications 4.78 + ;; 4.79 + gnome-games-icons) 4.80 + CAT="games|Gnome games icons set." 4.81 + DEPENDS="gnome-games" 4.82 + mkdir -p $fs/usr/share 4.83 + cp -a $install/usr/share/icons $fs/usr/share 4.84 + rm -rf $fs/usr/share/icons/hicolor/scalable 4.85 + ;; 4.86 + gnome-games-sudoku) 4.87 + CAT="games|Gnome sudoku game." 4.88 + DEPENDS="python pygtk python-gconf gnome-games-icons" 4.89 + game=gnome-sudoku 4.90 + mkdir -p \ 4.91 + $fs/usr/games $fs/usr/lib \ 4.92 + $fs/usr/share/applications 4.93 + 4.94 + cp -a $install/usr/games/$game $fs/usr/games 4.95 + cp -a $install/usr/lib/python* $fs/usr/lib 4.96 + rm -rf $fs/usr/lib/python*/*/glchess 4.97 + cp -a $install/usr/share/$game $fs/usr/share 4.98 + 4.99 + cp $src/$game/$game.desktop $fs/usr/share/applications 4.100 + ;; 4.101 + esac 4.102 }