wok annotate perl-config-tiny/receipt @ rev 25857
Fix reset menu.xml symlink when upgrade slitaz-configs
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Aug 07 17:10:52 2025 +0000 (4 days ago) |
parents | b27d8c263cba |
children |
rev | line source |
---|---|
pascal@18321 | 1 # SliTaz package receipt. |
pascal@18321 | 2 |
pascal@18321 | 3 PACKAGE="perl-config-tiny" |
Hans-Günter@24188 | 4 VERSION="2.27" |
pascal@18321 | 5 CATEGORY="development" |
Hans-Günter@23303 | 6 SHORT_DESC="Perl extension Config::Tiny." |
pascal@18321 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18334 | 8 LICENSE="GPL2" |
pascal@25663 | 9 WEB_SITE="https://metacpan.org/dist/Config-Tiny" |
Hans-Günter@24188 | 10 REPOLOGY="perl:config-tiny" |
Hans-Günter@23303 | 11 |
pascal@18321 | 12 SOURCE="Config-Tiny" |
pascal@18321 | 13 TARBALL="$SOURCE-$VERSION.tgz" |
pascal@25848 | 14 WGET_URL="https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/$TARBALL" |
pascal@18321 | 15 |
pascal@18334 | 16 DEPENDS="perl" |
pascal@18334 | 17 BUILD_DEPENDS="perl" |
pascal@18334 | 18 |
pascal@25848 | 19 # What is the latest version available today? |
pascal@24102 | 20 current_version() |
pascal@24102 | 21 { |
pascal@24102 | 22 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24102 | 23 sed '/release-name/!d;s|.*-v*||;s|<.*||;q' |
pascal@24102 | 24 } |
pascal@24102 | 25 |
pascal@18321 | 26 # Rules to configure and make the package. |
pascal@18321 | 27 compile_rules() |
pascal@18321 | 28 { |
pascal@18321 | 29 perl Makefile.PL && |
pascal@18321 | 30 make && |
pascal@18321 | 31 make install DESTDIR=$DESTDIR |
pascal@18321 | 32 } |
pascal@18321 | 33 |
pascal@18321 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18321 | 35 genpkg_rules() |
pascal@18321 | 36 { |
Hans-Günter@24188 | 37 cook_copy_folders lib |
pascal@18321 | 38 } |