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