wok view perl-uri/receipt @ rev 24419
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 11 11:14:46 2022 +0000 (2022-02-11) |
parents | 15650f5d595b |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-uri"
4 VERSION="5.10"
5 CATEGORY="development"
6 SHORT_DESC="Perl extensions URI::Escape, URI::File, URI::ldap and URI::URL."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://metacpan.org/pod/URI"
10 REPOLOGY="perl:uri"
12 SOURCE="URI"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://www.cpan.org/modules/by-module/URI/$TARBALL"
16 PROVIDE="perl-uri-escape perl-uri-file perl-uri-ldap perl-uri-url"
17 DEPENDS="perl"
18 BUILD_DEPENDS="perl"
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/release-name/!d;s|.*-||;s|<.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 perl Makefile.PL &&
30 make &&
31 make install DESTDIR=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_folders lib
38 }