wok view perl-mailtools/receipt @ rev 25703

some perl-*: update web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 04 16:09:04 2024 +0000 (13 days ago)
parents 15650f5d595b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-mailtools"
4 VERSION="2.21"
5 CATEGORY="development"
6 SHORT_DESC="Perl extension MailTools."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://metacpan.org/dist/MailTools"
11 SOURCE="MailTools"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://www.cpan.org/modules/by-module/Mail/$TARBALL"
15 PROVIDE="perl-mail-address perl-mail-cap perl-mail-field perl-mail-filter \
16 perl-mail-header perl-mail-internet perl-mail-mailer perl-mail-send \
17 perl-mail-util"
18 DEPENDS="perl"
19 BUILD_DEPENDS="perl"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - $WEB_SITE 2>/dev/null | \
25 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 perl Makefile.PL &&
32 make &&
33 make install DESTDIR=$DESTDIR
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $install/usr/lib $fs/usr
41 }