wok-current annotate perl-yaml-syck/receipt @ rev 24102
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 17 10:35:57 2021 +0000 (2021-09-17) |
parents | 396f1a263e34 |
children | 9463e45f65dc |
rev | line source |
---|---|
slaxemulator@9304 | 1 # SliTaz package receipt. |
slaxemulator@9304 | 2 |
slaxemulator@9304 | 3 PACKAGE="perl-yaml-syck" |
Hans-G?nter@23421 | 4 VERSION="1.32" |
slaxemulator@9304 | 5 CATEGORY="development" |
Hans-G?nter@23421 | 6 SHORT_DESC="Perl - Fast, lightweight YAML loader and dumper." |
slaxemulator@9304 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@14702 | 8 LICENSE="GPL" |
Hans-G?nter@23421 | 9 WEB_SITE="https://metacpan.org/release/YAML-Syck" |
Hans-G?nter@23421 | 10 |
Hans-G?nter@23421 | 11 SOURCE="YAML-Syck" |
Hans-G?nter@23421 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23421 | 13 WGET_URL="https://www.cpan.org/modules/by-module/YAML/$TARBALL" |
Hans-G?nter@23421 | 14 |
slaxemulator@9304 | 15 DEPENDS="perl" |
slaxemulator@9304 | 16 BUILD_DEPENDS="perl" |
slaxemulator@9304 | 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 |
slaxemulator@9304 | 24 # Rules to configure and make the package. |
slaxemulator@9304 | 25 compile_rules() |
slaxemulator@9304 | 26 { |
slaxemulator@9304 | 27 perl Makefile.PL -y && |
slaxemulator@9304 | 28 make && |
pascal@14702 | 29 make DESTDIR=$DESTDIR install |
slaxemulator@9304 | 30 } |
slaxemulator@9304 | 31 |
slaxemulator@9304 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@9304 | 33 genpkg_rules() |
slaxemulator@9304 | 34 { |
slaxemulator@9304 | 35 mkdir -p $fs/usr |
Hans-G?nter@23421 | 36 cp -a $install/usr/lib $fs/usr |
slaxemulator@9304 | 37 } |