wok rev 23660

updated spacefm (0.9.4 -> 1.0.6)
author Hans-G?nter Theisgen
date Fri Apr 24 06:18:34 2020 +0100 (2020-04-24)
parents f35073d3864a
children d60b622059e2
files spacefm/receipt spacefm/stuff/patches/prefdlg.ui-1.0.6 spacefm/stuff/patches/settings.h-1.0.6 spacefm/stuff/patches/vfs-file-task.c-1.0.6
line diff
     1.1 --- a/spacefm/receipt	Wed Apr 22 09:04:19 2020 +0100
     1.2 +++ b/spacefm/receipt	Fri Apr 24 06:18:34 2020 +0100
     1.3 @@ -1,50 +1,67 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="spacefm"
     1.7 -VERSION="0.9.4"
     1.8 +VERSION="1.0.6"
     1.9  CATEGORY="system-tools"
    1.10 +TAGS="file-manager"
    1.11  SHORT_DESC="Light, fast and easy to use file manager."
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13  LICENSE="GPL3"
    1.14 -TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.15 -WEB_SITE="http://ignorantguru.github.io/spacefm/"
    1.16 -WGET_URL="$SF_MIRROR/$PACKAGE/files/$TARBALL"
    1.17 -TAGS="file-manager"
    1.18 +WEB_SITE="https://ignorantguru.github.io/spacefm/"
    1.19  
    1.20 -DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \
    1.21 -gtk+ startup-notification dbus dbus-glib gdk-pixbuf udev bash udevil"
    1.22 -BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \
    1.23 -libxcb-dev xcb-util-dev expat-dev gdk-pixbuf-dev intltool udev-dev \
    1.24 -coreutils-file-special"
    1.25 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.26 +WGET_URL="https://github.com/IgnorantGuru/$PACKAGE/archive/$VERSION.tar.gz"
    1.27 +
    1.28 +DEPENDS="bash dbus dbus-glib expat gdk-pixbuf glib glibc-base gtk+ libgio 
    1.29 +	libxcb startup-notification udev udevil util-linux-uuid xcb-util"
    1.30 +BUILD_DEPENDS="coreutils-file-special dbus-dev dbus-glib-dev expat-dev 
    1.31 +	gdk-pixbuf-dev gtk+-dev intltool libxcb-dev startup-notification-dev 
    1.32 +	udev-dev xcb-util-dev"
    1.33  
    1.34  # Rules to configure and make the package.
    1.35  compile_rules()
    1.36  {
    1.37 -	patch -Np1 -i $stuff/prefdlg.ui.diff
    1.38 -	patch -Np1 -i $stuff/settings.h.diff
    1.39 -	patch -Np1 -i $stuff/vfs-file-task.c.diff
    1.40 +	patch --input=$stuff/patches/prefdlg.ui-$VERSION \
    1.41 +		data/ui/prefdlg.ui
    1.42 +	patch --input=$stuff/patches/settings.h-$VERSION \
    1.43 +		src/settings.h
    1.44 +	patch --input=$stuff/patches/vfs-file-task.c-$VERSION \
    1.45 +		src/vfs/vfs-file-task.c
    1.46  
    1.47 -	export LDFLAGS="$LDFLAGS -lxcb-util"
    1.48 -	./configure \
    1.49 -		--with-preferable-sudo="/usr/bin/subox" \
    1.50 -		--disable-pixmaps \
    1.51 +	./configure					\
    1.52 +		--with-preferable-sudo="/usr/bin/subox"	\
    1.53 +		--disable-video-thumbnails		\
    1.54 +		--disable-pixmaps			\
    1.55  		$CONFIGURE_ARGS &&
    1.56 -	make && make install
    1.57 +	make &&
    1.58 +	make install
    1.59  }
    1.60  
    1.61  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.62  genpkg_rules()
    1.63  {
    1.64 -	mkdir -p $fs/usr/share $fs/etc/spacefm
    1.65 -	cp -a $install/usr/bin $fs/usr
    1.66 -	for d in applications icons spacefm; do
    1.67 -		cp -a $install/usr/share/$d $fs/usr/share
    1.68 -	done
    1.69 -	cp $stuff/spacefm.conf $fs/etc/spacefm
    1.70 -	cp -a $stuff/xdg $fs/etc
    1.71 +	mkdir -p $fs/usr/share
    1.72 +	mkdir -p $fs/etc/spacefm
    1.73 +
    1.74 +	cp -a $install/usr/bin	$fs/usr
    1.75 +	for d in applications icons spacefm
    1.76 +	  do
    1.77 +		cp -a $install/usr/share/$d	$fs/usr/share
    1.78 +	  done
    1.79 +	cp $stuff/spacefm.conf	$fs/etc/spacefm
    1.80 +	cp -a $stuff/xdg	$fs/etc
    1.81 +
    1.82  	# Faenza --> SliTaz
    1.83 -	mv $fs/usr/share/icons/Faenza $fs/usr/share/icons/SliTaz
    1.84 -	rm -rf $fs/usr/share/icons/hicolor/128x128
    1.85 +	mv $fs/usr/share/icons/Faenza	$fs/usr/share/icons/SliTaz
    1.86 +	rm -rf				$fs/usr/share/icons/hicolor/128x128
    1.87 +
    1.88  	# /bin/bash --> /bin/sh
    1.89 -	sed -i s'|/bin/bash|/bin/sh|'g $fs/usr/bin/spacefm-auth
    1.90 +	sed -i s'|/bin/bash|/bin/sh|'g	$fs/usr/bin/spacefm-auth
    1.91  }
    1.92 +
    1.93 +post_install()
    1.94 +{
    1.95 +	echo
    1.96 +	echo 'Remove or rename /etc/xdg/autostart/spacefm.desktop'
    1.97 +	echo 'if pcmanfm is to remain desktop manager.'
    1.98 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/spacefm/stuff/patches/prefdlg.ui-1.0.6	Fri Apr 24 06:18:34 2020 +0100
     2.3 @@ -0,0 +1,12 @@
     2.4 +--- prefdlg.ui.orig
     2.5 ++++ prefdlg.ui
     2.6 +@@ -216,6 +216,9 @@
     2.7 +         <col id="0">/usr/bin/ktsuss</col>
     2.8 +       </row>
     2.9 +       <row>
    2.10 ++        <col id="0">/usr/bin/tazbox</col>
    2.11 ++      </row>
    2.12 ++      <row>
    2.13 +         <col id="0">/usr/bin/lxqt-sudo</col>
    2.14 +       </row>
    2.15 +       <row>
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/spacefm/stuff/patches/settings.h-1.0.6	Fri Apr 24 06:18:34 2020 +0100
     3.3 @@ -0,0 +1,10 @@
     3.4 +--- settings.h.orig
     3.5 ++++ settings.h
     3.6 +@@ -366,6 +366,7 @@
     3.7 +     "/usr/bin/kdesu",   // may be translated to "$(kde4-config --path libexec)/kdesu"
     3.8 +     "/usr/bin/kdesudo",
     3.9 +     "/usr/bin/ktsuss",
    3.10 ++    "/usr/bin/tazbox",
    3.11 +     "/usr/bin/lxqt-sudo",
    3.12 +     "/usr/bin/lxsu",
    3.13 +     "/usr/bin/su-to-root",
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/spacefm/stuff/patches/vfs-file-task.c-1.0.6	Fri Apr 24 06:18:34 2020 +0100
     4.3 @@ -0,0 +1,15 @@
     4.4 +--- vfs-file-task.c.orig
     4.5 ++++ vfs-file-task.c
     4.6 +@@ -1799,6 +1799,12 @@
     4.7 +             argv[a++] = g_strdup( "SpaceFM Command" );
     4.8 +             single_arg = TRUE;
     4.9 +         }
    4.10 ++        else if ( !strcmp( use_su, "/usr/bin/tazbox" ) )
    4.11 ++        {
    4.12 ++            // tazbox
    4.13 ++            argv[a++] = g_strdup( "su" );
    4.14 ++            single_arg = TRUE;
    4.15 ++        }
    4.16 +         else if ( strstr( use_su, "kdesu" ) )
    4.17 +         {
    4.18 +             // kdesu kdesudo