wok-next rev 20388

Up clutter (v2), cookutils (1016), get-rar (171201)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 01 15:14:07 2017 +0200 (2017-12-01)
parents 15486de2bce5
children ad393fe0cb78
files clutter-dev/receipt clutter/receipt cookutils/receipt get-rar/receipt get-rar/stuff/get-rar
line diff
     1.1 --- a/clutter-dev/receipt	Thu Nov 30 13:20:57 2017 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,23 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="clutter-dev"
     1.7 -VERSION="1.6.20"
     1.8 -CATEGORY="development"
     1.9 -SHORT_DESC="Clutter tool kit devel files."
    1.10 -MAINTAINER="pankso@slitaz.org"
    1.11 -LICENSE="LGPL2.1"
    1.12 -WANTED="clutter"
    1.13 -WEB_SITE="http://clutter-project.org/"
    1.14 -
    1.15 -DEPENDS="clutter mesa-dev json-glib-dev pkg-config xorg-libXcomposite-dev"
    1.16 -
    1.17 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 -genpkg_rules()
    1.19 -{
    1.20 -	mkdir -p $fs/usr/lib $fs/usr/share
    1.21 -	cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.22 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.23 -	cp -a $install/usr/share/gir-1.0 $fs/usr/share
    1.24 -	ln -s clutter-1.0.pc $fs/usr/lib/pkgconfig/clutter.pc
    1.25 -	cp -a $install/usr/include $fs/usr
    1.26 -}
     2.1 --- a/clutter/receipt	Thu Nov 30 13:20:57 2017 +0200
     2.2 +++ b/clutter/receipt	Fri Dec 01 15:14:07 2017 +0200
     2.3 @@ -1,35 +1,41 @@
     2.4 -# SliTaz package receipt.
     2.5 +# SliTaz package receipt v2.
     2.6  
     2.7  PACKAGE="clutter"
     2.8  VERSION="1.6.20"
     2.9  CATEGORY="x-window"
    2.10 -SHORT_DESC="Animated graphical user interfaces library."
    2.11 +SHORT_DESC="Animated graphical user interfaces library"
    2.12  MAINTAINER="pankso@slitaz.org"
    2.13  LICENSE="LGPL2.1"
    2.14 -SUGGESTED="nvidia"
    2.15 +WEB_SITE="http://clutter-project.org/"
    2.16 +
    2.17  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.18 -WEB_SITE="http://clutter-project.org/"
    2.19  WGET_URL="http://www.clutter-project.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
    2.20  
    2.21 -DEPENDS="atk glib gdk-pixbuf cairo pango json-glib mesa libdrm \
    2.22 -xorg-libXcomposite"
    2.23  BUILD_DEPENDS="atk-dev glib-dev gdk-pixbuf-dev cairo-dev pango-dev \
    2.24  json-glib-dev mesa-dev libdrm-dev xorg-libXcomposite-dev \
    2.25  gobject-introspection-dev pkg-config libxml2-dev expat-dev xorg-libxshmfence-dev"
    2.26 +SPLIT="clutter-dev"
    2.27  
    2.28 -# Rules to configure and make the package.
    2.29 -compile_rules()
    2.30 -{
    2.31 +compile_rules() {
    2.32  	./configure \
    2.33  		--enable-introspection \
    2.34  		$CONFIGURE_ARGS &&
    2.35 -	make && make install
    2.36 +	make && make install || return 1
    2.37 +
    2.38 +	ln -s clutter-1.0.pc $fs/usr/lib/pkgconfig/clutter.pc
    2.39  }
    2.40  
    2.41 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.42 -genpkg_rules()
    2.43 -{
    2.44 -	mkdir -p $fs/usr/lib
    2.45 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.46 -	cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
    2.47 +genpkg_rules() {
    2.48 +	case $PACKAGE in
    2.49 +		clutter)
    2.50 +			copy @std
    2.51 +			DEPENDS="atk glib gdk-pixbuf cairo pango json-glib mesa libdrm \
    2.52 +			xorg-libXcomposite"
    2.53 +			SUGGESTED="nvidia"
    2.54 +			;;
    2.55 +		*-dev)
    2.56 +			copy @dev
    2.57 +			DEPENDS="clutter mesa-dev json-glib-dev xorg-libXcomposite-dev"
    2.58 +			;;
    2.59 +	esac
    2.60  }
     3.1 --- a/cookutils/receipt	Thu Nov 30 13:20:57 2017 +0200
     3.2 +++ b/cookutils/receipt	Fri Dec 01 15:14:07 2017 +0200
     3.3 @@ -1,7 +1,7 @@
     3.4  # SliTaz package receipt v2.
     3.5  
     3.6  PACKAGE="cookutils"
     3.7 -VERSION="1008"
     3.8 +VERSION="1016"
     3.9  CATEGORY="base-system"
    3.10  SHORT_DESC="SliTaz packages builder new generation"
    3.11  MAINTAINER="pankso@slitaz.org"
     4.1 --- a/get-rar/receipt	Thu Nov 30 13:20:57 2017 +0200
     4.2 +++ b/get-rar/receipt	Fri Dec 01 15:14:07 2017 +0200
     4.3 @@ -1,18 +1,19 @@
     4.4  # SliTaz package receipt.
     4.5  
     4.6  PACKAGE="get-rar"
     4.7 -VERSION="1.00"
     4.8 +VERSION="171201"
     4.9  CATEGORY="non-free"
    4.10 -SHORT_DESC="Get RAR packer."
    4.11 +SHORT_DESC="Get RAR for Linux"
    4.12  MAINTAINER="pascal.bellard@slitaz.org"
    4.13  LICENSE="BSD"
    4.14 -WEB_SITE="http://www.rarlab.com/"
    4.15 +WEB_SITE="https://www.rarlab.com/"
    4.16  TAGS="compression archive"
    4.17  
    4.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
    4.19 -genpkg_rules()
    4.20 -{
    4.21 -	mkdir -p $fs/usr/bin
    4.22 -	cp stuff/get-rar $fs/usr/bin
    4.23 +compile_rules() {
    4.24 +	install -Dm0755 $stuff/get-rar $install/usr/bin/get-rar
    4.25  }
    4.26  
    4.27 +genpkg_rules() {
    4.28 +	copy @std
    4.29 +}
    4.30 +
     5.1 --- a/get-rar/stuff/get-rar	Thu Nov 30 13:20:57 2017 +0200
     5.2 +++ b/get-rar/stuff/get-rar	Fri Dec 01 15:14:07 2017 +0200
     5.3 @@ -1,26 +1,26 @@
     5.4  #!/bin/sh -e
     5.5  
     5.6 +. /lib/libtaz.sh # SliTaz base functions
     5.7 +
     5.8  ROOT="$1"
     5.9  PACKAGE="rar"
    5.10 -WEB_SITE="http://www.rarlab.com/"
    5.11 +WEB_SITE="https://www.rarlab.com/"
    5.12  WGET_URL="${WEB_SITE}download.htm"
    5.13  
    5.14 -if test $(id -u) != 0 ; then
    5.15 -	echo -e "\nYou must be root to run `basename $0`."
    5.16 -	echo -e "Please type 'su' and root password to become super-user.\n"
    5.17 -	exit 0
    5.18 -fi
    5.19 +check_root
    5.20  
    5.21 -if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ]; then
    5.22 -  [ -n "$ROOT" ] && exit 1
    5.23 -  tazpkg remove $PACKAGE
    5.24 -  [ -d /var/lib/tazpkg/installed/$PACKAGE ] && exit 1
    5.25 -fi
    5.26 +title "$PACKAGE installer"
    5.27  
    5.28 -WGET_URL=$WEB_SITE$(wget -O - $WGET_URL | grep 'rarlinux-[0-9]' | sed 's/.*href="\(.*\)".*/\1/' | head -n1)
    5.29 +echo "You should remove old version (if any) before installing the new one."
    5.30 +tazpkg -r $PACKAGE --root="$ROOT"
    5.31 +
    5.32 +newline
    5.33 +action "Determining the version..."
    5.34 +
    5.35 +WGET_URL=${WEB_SITE%/}$(wget -O - $WGET_URL 2>/dev/null | sed '/rarlinux-[0-9]/!d; s/.*href="\(.*\)".*/\1/' | head -n1)
    5.36  TARBALL=$(basename $WGET_URL || true)
    5.37  VERSION=$(echo $TARBALL | sed 's/.*-\(.*\).tar.*/\1/')
    5.38 -echo "Downloading $PACKAGE $VERSION from $WGET_URL..."
    5.39 +status
    5.40  
    5.41  BASE=$PWD
    5.42  DIR=/tmp/$0-$$
    5.43 @@ -28,6 +28,7 @@
    5.44  cd $DIR
    5.45  
    5.46  # Download tarball
    5.47 +echo -e "Downloading $PACKAGE $VERSION from $WGET_URL...\n"
    5.48  wget $WGET_URL
    5.49  if [ ! -f $TARBALL ]; then
    5.50  	cd $BASE
    5.51 @@ -37,25 +38,42 @@
    5.52  fi
    5.53  
    5.54  # Extract
    5.55 -tar xzf $TARBALL
    5.56 +newline
    5.57 +action "Extracting..."
    5.58 +busybox tar -xf ./$TARBALL
    5.59 +status
    5.60 +# Extracted pkg can be removed: Save RAM
    5.61 +rm -f ./$TARBALL
    5.62  
    5.63  # Install files
    5.64 -dir=$PACKAGE-$VERSION/fs/usr/bin
    5.65 -mkdir -p $dir
    5.66 -mv rar*/rar rar*/unrar $dir
    5.67 -
    5.68 -# extracted pkg can be removed: Save RAM
    5.69 -rm -f $TARBALL
    5.70 +fs=$PACKAGE-$VERSION/fs
    5.71 +mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc $fs/usr/share/licenses/rar \
    5.72 +         $fs/usr/share/doc/$PACKAGE-$VERSION
    5.73 +mv rar*/rar \
    5.74 +   rar*/unrar         $fs/usr/bin
    5.75 +mv rar*/default.sfx   $fs/usr/lib
    5.76 +mv rar*/rarfiles.lst  $fs/etc
    5.77 +mv rar*/license.txt   $fs/usr/share/licenses/rar
    5.78 +mv rar*/acknow.txt \
    5.79 +   rar*/whatsnew.txt \
    5.80 +   rar*/order.htm     $fs/usr/share/doc/$PACKAGE-$VERSION
    5.81  
    5.82  # Create pseudo package
    5.83 +
    5.84  cat > $PACKAGE-$VERSION/receipt <<EOT
    5.85  PACKAGE="$PACKAGE"
    5.86  VERSION="$VERSION"
    5.87  CATEGORY="non-free"
    5.88 -SHORT_DESC="A powerful archive manager."
    5.89 +SHORT_DESC="A powerful archive manager (trial license)"
    5.90  WEB_SITE="$WEB_SITE"
    5.91  EOT
    5.92  
    5.93 +# Description
    5.94 +mv rar*/readme.txt $PACKAGE-$VERSION/description.txt
    5.95 +
    5.96 +# Permissions
    5.97 +chown -R root:root $PACKAGE-$VERSION
    5.98 +
    5.99  # Pack
   5.100  tazpkg pack $PACKAGE-$VERSION
   5.101  
   5.102 @@ -63,9 +81,8 @@
   5.103  rm -rf $PACKAGE-$VERSION
   5.104  
   5.105  # Install pseudo package
   5.106 -tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT
   5.107 +tazpkg install $PACKAGE-$VERSION.tazpkg --root="$ROOT"
   5.108  cd $BASE
   5.109  
   5.110  # Clean
   5.111  rm -rf $DIR
   5.112 -