SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "clamtk"

# SliTaz package receipt.

PACKAGE="clamtk"
VERSION="6.14"
CATEGORY="network"
SHORT_DESC="ClamTk is a GUI front-end for ClamAV using perl-gtk3."
MAINTAINER="slaxemulator@gmail.com"
LICENSE="GPL"
WEB_SITE="https://github.com/dave-theunsub/clamtk"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL"

SUGGESTED="clamtk-lang"
DEPENDS="clamav perl perl-cairo perl-date-calc perl-file-find-rule perl-gtk3
    perl-json perl-libwww perl-locale-gettext perl-lwp-protocol-https
    perl-net-dns perl-net-ssleay perl-text-csv perl-try-tiny udev
    slitaz-icon"
BUILD_DEPENDS=""

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/dave-theunsub/clamtk/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cook_pick_manpages clamtk.1.gz
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    install -Dm755  $src/clamtk    $fs/usr/bin/clamtk

    # libraries
    PERL_VER=$(grep ^VERSION= $WOK/perl/receipt)
    PERL_VER=${PERL_VER#*\"}
    PERL_VER=${PERL_VER%\"*}
    for n in $src/lib/*
      do
        install -Dm644 $n    $fs/usr/lib/perl5/$PERL_VER/ClamTk/$(basename $n)
      done
  
    # pixmaps
    install -Dm644 $src/images/clamtk.xpm    $fs/usr/share/pixmaps/clamtk.xpm
    install -Dm644 $src/images/clamtk.png    $fs/usr/share/pixmaps/clamtk.png

    # menu
    install -Dm644 $src/clamtk.desktop    $fs/usr/share/applications/clamtk.desktop
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)