wok view perl-file-rsync/receipt @ rev 24102

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 17 10:35:57 2021 +0000 (2021-09-17)
parents 20661c276bcf
children cf792b10d9f9
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-file-rsync"
4 VERSION="0.74"
5 CATEGORY="development"
6 SHORT_DESC="Perl Rsync client"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL"
9 SOURCE="File-RsyncP"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://metacpan.org/release/File-RsyncP"
12 WGET_URL="https://metacpan.org/CPAN/authors/id/C/CB/CBARRATT/$TARBALL"
14 DEPENDS="perl rsync"
15 BUILD_DEPENDS="perl"
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 perl Makefile.PL &&
27 make -j1 &&
28 make -j1 DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 cp -a $install/usr/lib $fs/usr
36 }