wok-current annotate perl-crypt-cbc/receipt @ rev 24103
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 17 14:12:38 2021 +0000 (2021-09-17) |
parents | d337f2b3714f |
children | fd53e8cd386e |
rev | line source |
---|---|
nneul@18264 | 1 # SliTaz package receipt. |
nneul@18264 | 2 |
nneul@18264 | 3 PACKAGE="perl-crypt-cbc" |
nneul@18264 | 4 VERSION="2.33" |
nneul@18264 | 5 CATEGORY="development" |
nneul@18264 | 6 SHORT_DESC="Crypt::CBC module is a Perl extension." |
nneul@18264 | 7 MAINTAINER="nneul@neulinger.org" |
nneul@18264 | 8 LICENSE="Perl" |
nneul@18264 | 9 DEPENDS="perl" |
nneul@18264 | 10 BUILD_DEPENDS="perl" |
nneul@18264 | 11 SOURCE="Crypt-CBC" |
nneul@18264 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@24103 | 13 WEB_SITE="https://metacpan.org/dist/Crypt-CBC" |
nneul@18264 | 14 WGET_URL="http://cpan.org/authors/id/L/LD/LDS/$TARBALL" |
nneul@18264 | 15 |
pascal@24103 | 16 current_version() |
pascal@24103 | 17 { |
pascal@24103 | 18 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24103 | 19 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24103 | 20 } |
pascal@24103 | 21 |
nneul@18264 | 22 # Rules to configure and make the package. |
nneul@18264 | 23 compile_rules() |
nneul@18264 | 24 { |
nneul@18264 | 25 cd $src |
nneul@18264 | 26 perl Makefile.PL |
nneul@18264 | 27 make |
nneul@18264 | 28 make DESTDIR=$DESTDIR install |
nneul@18264 | 29 } |
nneul@18264 | 30 |
nneul@18264 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@18264 | 32 genpkg_rules() |
nneul@18264 | 33 { |
nneul@18264 | 34 mkdir -p $fs/usr |
nneul@18264 | 35 cp -a $install/usr/lib $fs/usr |
nneul@18264 | 36 } |
nneul@18264 | 37 |