wok-current view clamtk/receipt @ rev 24383
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 06 11:51:57 2022 +0000 (2022-02-06) |
parents | ae883e35501e |
children | 2e161a0fad08 |
line source
1 # SliTaz package receipt.
3 PACKAGE="clamtk"
4 VERSION="5.27"
5 CATEGORY="network"
6 SHORT_DESC="ClamTk is a GUI front-end for ClamAV using gtk2-perl."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL"
9 WEB_SITE="http://clamtk.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 WGET_URL="https://bitbucket.org/davem_/$PACKAGE/downloads/$TARBALL"
15 DEPENDS="clamav perl-gtk2 perl perl-date-calc perl-file-find-rule \
16 perl-json perl-libwww perl-locale-gettext perl-lwp-protocol-https \
17 perl-net-dns perl-net-ssleay perl-text-csv perl-try-tiny udev slitaz-icon"
18 BUILD_DEPENDS=""
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/dave-theunsub/clamtk/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cook_pick_manpages clamtk.1.gz
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 install -Dm755 $src/clamtk $fs/usr/bin/clamtk
38 # libs
39 PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g')
40 for n in $src/lib/* ; do
41 install -Dm644 $n $fs/usr/lib/perl5/$PERL_VER/ClamTk/`basename $n`
42 done
44 #localization
45 for n in $src/po/*.mo ; do
46 install -Dm644 $n $fs/usr/share/locale/`basename $n .mo`/LC_MESSAGES/clamtk.mo
47 done
49 # pixmaps
50 install -Dm644 $src/images/clamtk.xpm $fs/usr/share/pixmaps/clamtk.xpm
51 install -Dm644 $src/images/clamtk.png $fs/usr/share/pixmaps/clamtk.png
53 # menu
54 install -Dm644 $src/clamtk.desktop $fs/usr/share/applications/clamtk.desktop
55 }