wok-current diff fslint/receipt @ rev 24977

created recipe for fslint-lang
author Hans-G?nter Theisgen
date Fri May 06 16:54:42 2022 +0100 (2022-05-06)
parents ad8b9ff412d2
children
line diff
     1.1 --- a/fslint/receipt	Sat Feb 12 18:42:31 2022 +0000
     1.2 +++ b/fslint/receipt	Fri May 06 16:54:42 2022 +0100
     1.3 @@ -3,14 +3,15 @@
     1.4  PACKAGE="fslint"
     1.5  VERSION="2.46"
     1.6  CATEGORY="base-system"
     1.7 -SHORT_DESC="File System 'lint' discovery and cleaning utility"
     1.8 +SHORT_DESC="File System 'lint' discovery and cleaning utility."
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11 +WEB_SITE="https://www.pixelbeat.org/fslint/"
    1.12  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.13 -WEB_SITE="http://www.pixelbeat.org/fslint/"
    1.14  WGET_URL="$WEB_SITE/$TARBALL"
    1.15  
    1.16 -DEPENDS="gtk+ python libglade pygtk findutils cpio"
    1.17 +SUGGESTED="fslint-lang"
    1.18 +DEPENDS="bash coreutils-file-sort cpio findutils gtk+ libglade pygtk python"
    1.19  BUILD_DEPENDS="gettext"
    1.20  
    1.21  # What is the latest version available today?
    1.22 @@ -23,24 +24,36 @@
    1.23  # Rules to configure and make the package.
    1.24  compile_rules()
    1.25  {
    1.26 -	make -C po DESTDIR=$DESTDIR LOCALEDIR=/usr/share/locale install
    1.27 +	sed -i	-e s"|^liblocation=.*|liblocation=\'/usr/share'|"	\
    1.28 +		-e s'|/po/locale|/locale|'				\
    1.29 +		fslint-gui &&
    1.30 +	# create localised messages
    1.31 +	make	install				\
    1.32 +		-C po				\
    1.33 +		DESTDIR=$DESTDIR		\
    1.34 +		LOCALEDIR=/usr/share/locale
    1.35  }
    1.36  
    1.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.38  genpkg_rules()
    1.39  {
    1.40 -	mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
    1.41 -	mkdir -p $fs/usr/bin $fs/usr/share/fslint
    1.42 -	mkdir -p $install/usr/share/pixmaps
    1.43 -	cp -a $src/doc $src/man $install/usr/share/
    1.44 -	cp -a $src/fslint.desktop $fs/usr/share/applications
    1.45 -	cp -a $src/fslint-gui $fs/usr/bin
    1.46 -	cp -a $src/fslint.glade $fs/usr/bin
    1.47 -	cp -a $src/fslint/fstool $fs/usr/share/fslint/
    1.48 -	cp -a $src/fslint/supprt $fs/usr/share/fslint/
    1.49 -	cp -a $src/fslint/find* $fs/usr/share/fslint/
    1.50 -	cp -a $src/fslint/fslint $fs/usr/share/fslint/
    1.51 -	cp -a $src/fslint/zipdir $fs/usr/share/fslint/
    1.52 -	cp -a $src/fslint_icon.png $fs/usr/share/fslint/
    1.53 -	ln -s ../fslint/fslint_icon.png $fs/usr/share/pixmaps
    1.54 +	mkdir -p $install/usr/share
    1.55 +	cp -a $src/doc			$install/usr/share/
    1.56 +	cp -a $src/man			$install/usr/share/
    1.57 +
    1.58 +	mkdir -p $fs/usr/bin
    1.59 +	mkdir -p $fs/usr/share/applications
    1.60 +	mkdir -p $fs/usr/share/fslint
    1.61 +	mkdir -p $fs/usr/share/pixmaps
    1.62 +
    1.63 +	cp -a $src/fslint.desktop	$fs/usr/share/applications
    1.64 +	cp -a $src/fslint-gui		$fs/usr/bin
    1.65 +	cp -a $src/fslint.glade		$fs/usr/share
    1.66 +	cp -a $src/fslint/fstool	$fs/usr/share/fslint/
    1.67 +	cp -a $src/fslint/supprt	$fs/usr/share/fslint/
    1.68 +	cp -a $src/fslint/find*		$fs/usr/share/fslint/
    1.69 +	cp -a $src/fslint/fslint	$fs/usr/share/fslint/
    1.70 +	cp -a $src/fslint/zipdir	$fs/usr/share/fslint/
    1.71 +	cp -a $src/fslint_icon.png	$fs/usr/share/pixmaps
    1.72 +	ln -s ./pixmaps/fslint_icon.png	$fs/usr/share/fslint_icon.png
    1.73  }