wok-6.x annotate perl-dbi/receipt @ rev 24384
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 06 16:04:43 2022 +0000 (2022-02-06) |
parents | 5f6c5106b1f5 |
children |
rev | line source |
---|---|
pascal@1599 | 1 # SliTaz package receipt. |
pascal@1599 | 2 |
pascal@1599 | 3 PACKAGE="perl-dbi" |
pascal@1599 | 4 VERSION="v3.0.17" |
pascal@1599 | 5 CATEGORY="development" |
pascal@24103 | 6 SHORT_DESC="Class::DBI module is a Perl extension." |
pascal@1599 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
pascal@1599 | 9 DEPENDS="perl" |
pascal@1599 | 10 BUILD_DEPENDS="perl" |
pascal@1599 | 11 SOURCE="Class-DBI" |
pascal@1599 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@24103 | 13 WEB_SITE="https://metacpan.org/dist/Class-DBI" |
pascal@1599 | 14 WGET_URL="http://cpan.org/authors/id/T/TM/TMTM/$TARBALL" |
pascal@1599 | 15 |
pascal@24103 | 16 current_version() |
pascal@24103 | 17 { |
pascal@24103 | 18 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24384 | 19 sed '/Class-DBI/!d;s|.*Class-DBI-||;s| .*||;q' |
pascal@24103 | 20 } |
pascal@24103 | 21 |
pascal@1599 | 22 # Rules to configure and make the package. |
pascal@1599 | 23 compile_rules() |
pascal@1599 | 24 { |
pascal@1599 | 25 cd $src |
pascal@1599 | 26 perl Makefile.PL |
pascal@1599 | 27 make |
pascal@14702 | 28 make DESTDIR=$DESTDIR install |
pascal@1599 | 29 } |
pascal@1599 | 30 |
pascal@1599 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1599 | 32 genpkg_rules() |
pascal@1599 | 33 { |
pascal@1599 | 34 mkdir -p $fs/usr |
pascal@14702 | 35 cp -a $install/usr/lib $fs/usr |
pascal@1599 | 36 } |
pascal@1599 | 37 |