wok-6.x annotate perl-file-rsync/receipt @ rev 24211
created recipe for perl-file-rsync
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 16:00:22 2021 +0100 (2021-12-31) |
parents | 15650f5d595b |
children |
rev | line source |
---|---|
slaxemulator@8732 | 1 # SliTaz package receipt. |
slaxemulator@8732 | 2 |
slaxemulator@8732 | 3 PACKAGE="perl-file-rsync" |
Hans-G?nter@24211 | 4 VERSION="0.49" |
slaxemulator@8732 | 5 CATEGORY="development" |
Hans-G?nter@24211 | 6 SHORT_DESC="Perl module interface to rsync." |
Hans-G?nter@24211 | 7 MAINTAINER="maintainer@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@24211 | 9 WEB_SITE="https://metacpan.org/pod/File::Rsync" |
Hans-G?nter@24211 | 10 REPOLOGY="perl:file-rsync" |
Hans-G?nter@24211 | 11 SOURCE="File-Rsync" |
slaxemulator@8732 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@24211 | 13 WGET_URL="https://www.cpan.org/modules/by-module/File/$TARBALL" |
slaxemulator@8732 | 14 |
pascal@17741 | 15 DEPENDS="perl rsync" |
pascal@17741 | 16 BUILD_DEPENDS="perl" |
pascal@17741 | 17 |
pascal@24102 | 18 current_version() |
pascal@24102 | 19 { |
pascal@24102 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 21 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24102 | 22 } |
pascal@24102 | 23 |
slaxemulator@8732 | 24 # Rules to configure and make the package. |
slaxemulator@8732 | 25 compile_rules() |
slaxemulator@8732 | 26 { |
slaxemulator@8732 | 27 perl Makefile.PL && |
Hans-G?nter@24211 | 28 make && |
Hans-G?nter@24211 | 29 make install DESTDIR=$DESTDIR |
slaxemulator@8732 | 30 } |
slaxemulator@8732 | 31 |
slaxemulator@8732 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@8732 | 33 genpkg_rules() |
slaxemulator@8732 | 34 { |
Hans-G?nter@24211 | 35 cook_copy_folders lib |
slaxemulator@8732 | 36 } |