wok-current view clamtk/receipt @ rev 25713
Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Jun 14 11:35:21 2024 +0000 (2 months ago) |
parents | 2e161a0fad08 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="clamtk"
4 VERSION="6.14"
5 CATEGORY="network"
6 SHORT_DESC="ClamTk is a GUI front-end for ClamAV using perl-gtk3."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL"
9 WEB_SITE="https://github.com/dave-theunsub/clamtk"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"
14 SUGGESTED="clamtk-lang"
15 DEPENDS="clamav perl perl-cairo perl-date-calc perl-file-find-rule perl-gtk3
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
18 slitaz-icon"
19 BUILD_DEPENDS=""
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://github.com/dave-theunsub/clamtk/releases 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 cook_pick_manpages clamtk.1.gz
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 install -Dm755 $src/clamtk $fs/usr/bin/clamtk
39 # libraries
40 PERL_VER=$(grep ^VERSION= $WOK/perl/receipt)
41 PERL_VER=${PERL_VER#*\"}
42 PERL_VER=${PERL_VER%\"*}
43 for n in $src/lib/*
44 do
45 install -Dm644 $n $fs/usr/lib/perl5/$PERL_VER/ClamTk/$(basename $n)
46 done
48 # pixmaps
49 install -Dm644 $src/images/clamtk.xpm $fs/usr/share/pixmaps/clamtk.xpm
50 install -Dm644 $src/images/clamtk.png $fs/usr/share/pixmaps/clamtk.png
52 # menu
53 install -Dm644 $src/clamtk.desktop $fs/usr/share/applications/clamtk.desktop
54 }