wok-current annotate clamtk/receipt @ rev 24970
created recipe for midori-lang
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 26 14:49:30 2022 +0100 (2022-04-26) |
parents | 2e161a0fad08 |
children |
rev | line source |
---|---|
slaxemulator@10153 | 1 # SliTaz package receipt. |
slaxemulator@10153 | 2 |
slaxemulator@10153 | 3 PACKAGE="clamtk" |
Hans-G?nter@24410 | 4 VERSION="6.14" |
slaxemulator@10153 | 5 CATEGORY="network" |
Hans-G?nter@24418 | 6 SHORT_DESC="ClamTk is a GUI front-end for ClamAV using perl-gtk3." |
slaxemulator@10153 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15202 | 8 LICENSE="GPL" |
Hans-G?nter@24410 | 9 WEB_SITE="https://github.com/dave-theunsub/clamtk" |
Hans-G?nter@20790 | 10 |
Hans-G?nter@20790 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@24410 | 12 WGET_URL="$WEB_SITE/releases/download/v$VERSION/$TARBALL" |
slaxemulator@10153 | 13 |
Hans-G?nter@24410 | 14 SUGGESTED="clamtk-lang" |
Hans-G?nter@24418 | 15 DEPENDS="clamav perl perl-cairo perl-date-calc perl-file-find-rule perl-gtk3 |
Hans-G?nter@24410 | 16 perl-json perl-libwww perl-locale-gettext perl-lwp-protocol-https |
Hans-G?nter@24410 | 17 perl-net-dns perl-net-ssleay perl-text-csv perl-try-tiny udev |
Hans-G?nter@24410 | 18 slitaz-icon" |
slaxemulator@11047 | 19 BUILD_DEPENDS="" |
slaxemulator@11047 | 20 |
pascal@24383 | 21 # What is the latest version available today? |
pascal@24383 | 22 current_version() |
pascal@24383 | 23 { |
pascal@24383 | 24 wget -O - https://github.com/dave-theunsub/clamtk/releases 2>/dev/null | \ |
pascal@24383 | 25 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24383 | 26 } |
pascal@24383 | 27 |
al@19316 | 28 # Rules to configure and make the package. |
al@19316 | 29 compile_rules() |
al@19316 | 30 { |
al@19316 | 31 cook_pick_manpages clamtk.1.gz |
al@19316 | 32 } |
al@19316 | 33 |
slaxemulator@10153 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10153 | 35 genpkg_rules() |
slaxemulator@10153 | 36 { |
Hans-G?nter@24410 | 37 install -Dm755 $src/clamtk $fs/usr/bin/clamtk |
slaxemulator@10153 | 38 |
Hans-G?nter@24410 | 39 # libraries |
Hans-G?nter@24410 | 40 PERL_VER=$(grep ^VERSION= $WOK/perl/receipt) |
Hans-G?nter@24410 | 41 PERL_VER=${PERL_VER#*\"} |
Hans-G?nter@24410 | 42 PERL_VER=${PERL_VER%\"*} |
Hans-G?nter@24410 | 43 for n in $src/lib/* |
Hans-G?nter@24410 | 44 do |
Hans-G?nter@24410 | 45 install -Dm644 $n $fs/usr/lib/perl5/$PERL_VER/ClamTk/$(basename $n) |
Hans-G?nter@24410 | 46 done |
slaxemulator@10153 | 47 |
Hans-G?nter@24410 | 48 # pixmaps |
Hans-G?nter@24410 | 49 install -Dm644 $src/images/clamtk.xpm $fs/usr/share/pixmaps/clamtk.xpm |
Hans-G?nter@24410 | 50 install -Dm644 $src/images/clamtk.png $fs/usr/share/pixmaps/clamtk.png |
slaxemulator@10153 | 51 |
slaxemulator@10153 | 52 # menu |
Hans-G?nter@24410 | 53 install -Dm644 $src/clamtk.desktop $fs/usr/share/applications/clamtk.desktop |
slaxemulator@10153 | 54 } |