wok-4.x annotate clamtk/receipt @ rev 12367
clamtk: fix genpkg_rules (thanks ernia)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 02 14:24:30 2013 +0100 (2013-01-02) |
parents | 6fe86b6fecff |
children |
rev | line source |
---|---|
slaxemulator@10153 | 1 # SliTaz package receipt. |
slaxemulator@10153 | 2 |
slaxemulator@10153 | 3 PACKAGE="clamtk" |
slaxemulator@11047 | 4 VERSION="4.36" |
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" |
slaxemulator@10153 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@10153 | 9 WEB_SITE="http://clamtk.sourceforge.net/" |
slaxemulator@10153 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@10153 | 11 |
slaxemulator@11047 | 12 DEPENDS="clamav perl-gtk2 perl perl-date-calc perl-file-find-rule \ |
slaxemulator@11047 | 13 perl-libwww perl-locale-gettext perl-net-dns udev" |
slaxemulator@11047 | 14 BUILD_DEPENDS="" |
slaxemulator@11047 | 15 |
slaxemulator@10153 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@10153 | 17 genpkg_rules() |
slaxemulator@10153 | 18 { |
slaxemulator@10153 | 19 install -Dm755 $src/clamtk $fs/usr/bin/clamtk |
slaxemulator@10153 | 20 |
slaxemulator@10153 | 21 # libs |
pascal@12367 | 22 PERL_VER=$(grep ^VERSION= $WOK/perl/receipt | cut -d "=" -f2 | sed -e 's/"//g') |
slaxemulator@10153 | 23 for n in $src/lib/* ; do |
pascal@12367 | 24 install -Dm644 $n $fs/usr/lib/perl5/$PERL_VER/ClamTk/`basename $n` |
slaxemulator@10153 | 25 done |
slaxemulator@10153 | 26 |
slaxemulator@10153 | 27 #localization |
slaxemulator@10153 | 28 for n in $src/po/*.mo ; do |
slaxemulator@10153 | 29 install -Dm644 $n $fs/usr/share/locale/`basename $n .mo`/LC_MESSAGES/clamtk.mo |
slaxemulator@10153 | 30 done |
slaxemulator@10153 | 31 |
slaxemulator@10153 | 32 # pixmaps |
slaxemulator@10153 | 33 install -Dm644 $src/clamtk.xpm $fs/usr/share/pixmaps/clamtk.xpm |
slaxemulator@10153 | 34 install -Dm644 $src/clamtk.png $fs/usr/share/pixmaps/clamtk.png |
slaxemulator@10153 | 35 |
slaxemulator@10153 | 36 # menu |
slaxemulator@10153 | 37 install -Dm644 $src/clamtk.desktop $fs/usr/share/applications/clamtk.desktop |
slaxemulator@10153 | 38 } |