wok view perl-compress-raw-bzip2/receipt @ rev 25604
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 18 17:30:47 2023 +0000 (16 months ago) |
parents | 095836df71b7 |
children | b27d8c263cba |
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-compress-raw-bzip2"
4 VERSION="2.101"
5 CATEGORY="development"
6 SHORT_DESC="PERL low-level interface to bzip2."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://metacpan.org/pod/Compress::Raw::Bzip2"
10 REPOLOGY="perl:compress-raw-bzip2"
12 SOURCE="Compress-Raw-Bzip2"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://cpan.metacpan.org/authors/id/P/PM/PMQS/$TARBALL"
16 DEPENDS="perl"
17 BUILD_DEPENDS="perl"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/ompress-Raw-Bzip2-/!d;s|.*zip2-||;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 }