wok annotate perl-test-number-delta/receipt @ rev 24891
lynx: use ncursesw (tanks ceel)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 07 07:20:18 2022 +0000 (2022-04-07) |
parents | e9315a9b2f02 |
children | 0af8df0b46fc |
rev | line source |
---|---|
claudinei@3179 | 1 # SliTaz package receipt. |
claudinei@3179 | 2 |
claudinei@3179 | 3 PACKAGE="perl-test-number-delta" |
Hans-G?nter@23399 | 4 VERSION="1.06" |
claudinei@3179 | 5 CATEGORY="development" |
Hans-G?nter@23399 | 6 SHORT_DESC="Perl - Compare the difference between numbers against a given tolerance." |
claudinei@3179 | 7 MAINTAINER="claudinei@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@23399 | 9 WEB_SITE="https://metacpan.org/release/Test-Number-Delta" |
Hans-G?nter@23399 | 10 |
Hans-G?nter@23399 | 11 SOURCE="Test-Number-Delta" |
Hans-G?nter@23399 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23399 | 13 WGET_URL="https://www.cpan.org/modules/by-module/Test/$TARBALL" |
Hans-G?nter@23399 | 14 |
claudinei@3179 | 15 DEPENDS="perl" |
claudinei@3179 | 16 BUILD_DEPENDS="perl" |
claudinei@3179 | 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 |
claudinei@3179 | 24 # Rules to configure and make the package. |
claudinei@3179 | 25 compile_rules() |
claudinei@3179 | 26 { |
claudinei@3179 | 27 perl Makefile.PL && |
claudinei@3179 | 28 make && |
pascal@14702 | 29 make DESTDIR=$DESTDIR install |
claudinei@3179 | 30 } |
claudinei@3179 | 31 |
claudinei@3179 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3179 | 33 genpkg_rules() |
claudinei@3179 | 34 { |
claudinei@3179 | 35 mkdir -p $fs/usr |
Hans-G?nter@23399 | 36 cp -a $install/usr/lib $fs/usr |
claudinei@3179 | 37 } |