wok diff clamtk/receipt @ rev 24417

created recipes for perl-cairo-gobject, perl-glib-object-introspection and perl-gtk3
author Hans-G?nter Theisgen
date Fri Feb 11 09:16:47 2022 +0100 (2022-02-11)
parents 076f424196b2
children 634c175862b7
line diff
     1.1 --- a/clamtk/receipt	Sun Feb 06 11:51:57 2022 +0000
     1.2 +++ b/clamtk/receipt	Fri Feb 11 09:16:47 2022 +0100
     1.3 @@ -1,20 +1,21 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="clamtk"
     1.7 -VERSION="5.27"
     1.8 +VERSION="6.14"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="ClamTk is a GUI front-end for ClamAV using gtk2-perl."
    1.11  MAINTAINER="slaxemulator@gmail.com"
    1.12  LICENSE="GPL"
    1.13 -WEB_SITE="http://clamtk.sourceforge.net/"
    1.14 +WEB_SITE="https://github.com/dave-theunsub/clamtk"
    1.15  
    1.16  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.17 -#WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.18 -WGET_URL="https://bitbucket.org/davem_/$PACKAGE/downloads/$TARBALL"
    1.19 +WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"
    1.20  
    1.21 -DEPENDS="clamav perl-gtk2 perl perl-date-calc perl-file-find-rule \
    1.22 -perl-json perl-libwww perl-locale-gettext perl-lwp-protocol-https \
    1.23 -perl-net-dns perl-net-ssleay perl-text-csv perl-try-tiny udev slitaz-icon"
    1.24 +SUGGESTED="clamtk-lang"
    1.25 +DEPENDS="clamav perl perl-date-calc perl-file-find-rule perl-gtk2
    1.26 +	perl-json perl-libwww perl-locale-gettext perl-lwp-protocol-https
    1.27 +	perl-net-dns perl-net-ssleay perl-text-csv perl-try-tiny udev
    1.28 +	slitaz-icon"
    1.29  BUILD_DEPENDS=""
    1.30  
    1.31  # What is the latest version available today?
    1.32 @@ -33,23 +34,21 @@
    1.33  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.34  genpkg_rules()
    1.35  {
    1.36 -	install -Dm755  $src/clamtk $fs/usr/bin/clamtk
    1.37 +	install -Dm755  $src/clamtk	$fs/usr/bin/clamtk
    1.38  
    1.39 -	# libs
    1.40 -	PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')
    1.41 -	for n in $src/lib/* ; do
    1.42 -		install -Dm644 $n $fs/usr/lib/perl5/$PERL_VER/ClamTk/`basename $n`
    1.43 -	done
    1.44 +	# libraries
    1.45 +	PERL_VER=$(grep ^VERSION= $WOK/perl/receipt)
    1.46 +	PERL_VER=${PERL_VER#*\"}
    1.47 +	PERL_VER=${PERL_VER%\"*}
    1.48 +	for n in $src/lib/*
    1.49 +	  do
    1.50 +		install -Dm644 $n	$fs/usr/lib/perl5/$PERL_VER/ClamTk/$(basename $n)
    1.51 +	  done
    1.52    
    1.53 -	#localization
    1.54 -	for n in $src/po/*.mo ; do
    1.55 -		install -Dm644 $n $fs/usr/share/locale/`basename $n .mo`/LC_MESSAGES/clamtk.mo
    1.56 -	done
    1.57 +	# pixmaps
    1.58 +	install -Dm644 $src/images/clamtk.xpm	$fs/usr/share/pixmaps/clamtk.xpm
    1.59 +	install -Dm644 $src/images/clamtk.png	$fs/usr/share/pixmaps/clamtk.png
    1.60  
    1.61 -	# pixmaps
    1.62 -	install -Dm644 $src/images/clamtk.xpm $fs/usr/share/pixmaps/clamtk.xpm
    1.63 -	install -Dm644 $src/images/clamtk.png $fs/usr/share/pixmaps/clamtk.png
    1.64 -  
    1.65  	# menu
    1.66 -	install -Dm644 $src/clamtk.desktop $fs/usr/share/applications/clamtk.desktop
    1.67 +	install -Dm644 $src/clamtk.desktop	$fs/usr/share/applications/clamtk.desktop
    1.68  }