wok-current 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 1805f71c5d9f
children 00e3b45c063b
files fslint-lang/receipt fslint/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/fslint-lang/receipt	Fri May 06 16:54:42 2022 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="fslint-lang"
     1.7 +VERSION="2.46"
     1.8 +CATEGORY="localization"
     1.9 +SHORT_DESC="File System 'lint' discovery and cleaning utility - localised messages."
    1.10 +MAINTAINER="maintainer@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +WEB_SITE="https://www.pixelbeat.org/fslint/"
    1.13 +
    1.14 +WANTED="fslint"
    1.15 +
    1.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +genpkg_rules()
    1.18 +{
    1.19 +	cook_copy_folders	locale
    1.20 +}
     2.1 --- a/fslint/receipt	Fri May 06 11:04:25 2022 +0000
     2.2 +++ b/fslint/receipt	Fri May 06 16:54:42 2022 +0100
     2.3 @@ -3,14 +3,15 @@
     2.4  PACKAGE="fslint"
     2.5  VERSION="2.46"
     2.6  CATEGORY="base-system"
     2.7 -SHORT_DESC="File System 'lint' discovery and cleaning utility"
     2.8 +SHORT_DESC="File System 'lint' discovery and cleaning utility."
     2.9  MAINTAINER="pascal.bellard@slitaz.org"
    2.10  LICENSE="GPL2"
    2.11 +WEB_SITE="https://www.pixelbeat.org/fslint/"
    2.12  TARBALL="$PACKAGE-$VERSION.tar.xz"
    2.13 -WEB_SITE="http://www.pixelbeat.org/fslint/"
    2.14  WGET_URL="$WEB_SITE/$TARBALL"
    2.15  
    2.16 -DEPENDS="gtk+ python libglade pygtk findutils cpio"
    2.17 +SUGGESTED="fslint-lang"
    2.18 +DEPENDS="bash coreutils-file-sort cpio findutils gtk+ libglade pygtk python"
    2.19  BUILD_DEPENDS="gettext"
    2.20  
    2.21  # What is the latest version available today?
    2.22 @@ -23,24 +24,36 @@
    2.23  # Rules to configure and make the package.
    2.24  compile_rules()
    2.25  {
    2.26 -	make -C po DESTDIR=$DESTDIR LOCALEDIR=/usr/share/locale install
    2.27 +	sed -i	-e s"|^liblocation=.*|liblocation=\'/usr/share'|"	\
    2.28 +		-e s'|/po/locale|/locale|'				\
    2.29 +		fslint-gui &&
    2.30 +	# create localised messages
    2.31 +	make	install				\
    2.32 +		-C po				\
    2.33 +		DESTDIR=$DESTDIR		\
    2.34 +		LOCALEDIR=/usr/share/locale
    2.35  }
    2.36  
    2.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.38  genpkg_rules()
    2.39  {
    2.40 -	mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
    2.41 -	mkdir -p $fs/usr/bin $fs/usr/share/fslint
    2.42 -	mkdir -p $install/usr/share/pixmaps
    2.43 -	cp -a $src/doc $src/man $install/usr/share/
    2.44 -	cp -a $src/fslint.desktop $fs/usr/share/applications
    2.45 -	cp -a $src/fslint-gui $fs/usr/bin
    2.46 -	cp -a $src/fslint.glade $fs/usr/bin
    2.47 -	cp -a $src/fslint/fstool $fs/usr/share/fslint/
    2.48 -	cp -a $src/fslint/supprt $fs/usr/share/fslint/
    2.49 -	cp -a $src/fslint/find* $fs/usr/share/fslint/
    2.50 -	cp -a $src/fslint/fslint $fs/usr/share/fslint/
    2.51 -	cp -a $src/fslint/zipdir $fs/usr/share/fslint/
    2.52 -	cp -a $src/fslint_icon.png $fs/usr/share/fslint/
    2.53 -	ln -s ../fslint/fslint_icon.png $fs/usr/share/pixmaps
    2.54 +	mkdir -p $install/usr/share
    2.55 +	cp -a $src/doc			$install/usr/share/
    2.56 +	cp -a $src/man			$install/usr/share/
    2.57 +
    2.58 +	mkdir -p $fs/usr/bin
    2.59 +	mkdir -p $fs/usr/share/applications
    2.60 +	mkdir -p $fs/usr/share/fslint
    2.61 +	mkdir -p $fs/usr/share/pixmaps
    2.62 +
    2.63 +	cp -a $src/fslint.desktop	$fs/usr/share/applications
    2.64 +	cp -a $src/fslint-gui		$fs/usr/bin
    2.65 +	cp -a $src/fslint.glade		$fs/usr/share
    2.66 +	cp -a $src/fslint/fstool	$fs/usr/share/fslint/
    2.67 +	cp -a $src/fslint/supprt	$fs/usr/share/fslint/
    2.68 +	cp -a $src/fslint/find*		$fs/usr/share/fslint/
    2.69 +	cp -a $src/fslint/fslint	$fs/usr/share/fslint/
    2.70 +	cp -a $src/fslint/zipdir	$fs/usr/share/fslint/
    2.71 +	cp -a $src/fslint_icon.png	$fs/usr/share/pixmaps
    2.72 +	ln -s ./pixmaps/fslint_icon.png	$fs/usr/share/fslint_icon.png
    2.73  }