wok-6.x annotate perl-module-metadata/receipt @ rev 24998
Up rp-pppoe (3.15)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 16 10:11:22 2022 +0000 (2022-05-16) |
parents | b61de43a5edf |
children |
rev | line source |
---|---|
pascal@20469 | 1 # SliTaz package receipt. |
pascal@20469 | 2 |
pascal@20469 | 3 PACKAGE="perl-module-metadata" |
Hans-G?nter@23371 | 4 VERSION="1.000037" |
pascal@20469 | 5 CATEGORY="development" |
Hans-G?nter@23371 | 6 SHORT_DESC="Perl extension Module::Metadata." |
pascal@20469 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20469 | 8 LICENSE="GPL" |
Hans-G?nter@23371 | 9 WEB_SITE="https://metacpan.org/release/Module-Metadata" |
Hans-G?nter@23371 | 10 |
Hans-G?nter@23371 | 11 SOURCE="Module-Metadata" |
Hans-G?nter@23371 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23371 | 13 WGET_URL="https://cpan.metacpan.org/authors/id/E/ET/ETHER/$TARBALL" |
Hans-G?nter@23371 | 14 |
pascal@20469 | 15 DEPENDS="perl" |
pascal@20469 | 16 BUILD_DEPENDS="perl" |
pascal@20469 | 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 |
pascal@20469 | 24 # Rules to configure and make the package. |
pascal@20469 | 25 compile_rules() |
pascal@20469 | 26 { |
pascal@20469 | 27 perl Makefile.PL && |
pascal@20469 | 28 make && |
pascal@20469 | 29 make DESTDIR=$DESTDIR install |
pascal@20469 | 30 } |
pascal@20469 | 31 |
pascal@20469 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20469 | 33 genpkg_rules() |
pascal@20469 | 34 { |
pascal@20469 | 35 mkdir -p $fs/usr |
Hans-G?nter@23371 | 36 cp -a $install/usr/lib $fs/usr |
pascal@20469 | 37 } |