wok annotate perl-http-negotiate/receipt @ rev 24133

Up tazinst (115)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 23 15:17:56 2021 +0000 (2021-10-23)
parents 6e8b1bcb30e2
children 0af8df0b46fc
rev   line source
erjo@12228 1 # SliTaz package receipt.
erjo@12228 2
erjo@12228 3 PACKAGE="perl-http-negotiate"
erjo@12228 4 VERSION="6.01"
erjo@12228 5 CATEGORY="development"
erjo@12228 6 SHORT_DESC="Choose a variant to serve"
erjo@12228 7 MAINTAINER="erjo@slitaz.org"
pascal@14702 8 LICENSE="GPL"
erjo@12228 9 SOURCE="HTTP-Negotiate"
erjo@12228 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@20671 11 WEB_SITE="https://metacpan.org/release/libwww-perl/"
erjo@12228 12 WGET_URL="http://www.cpan.org/authors/id/G/GA/GAAS/$TARBALL"
erjo@12228 13
erjo@12228 14 DEPENDS="perl perl-http-message"
erjo@12228 15 BUILD_DEPENDS="perl $DEPENDS"
erjo@12228 16
pascal@24102 17 current_version()
pascal@24102 18 {
pascal@24102 19 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24102 20 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
pascal@24102 21 }
pascal@24102 22
erjo@12228 23 # Rules to configure and make the package.
erjo@12228 24 compile_rules()
erjo@12228 25 {
erjo@12228 26 cd $src
erjo@12228 27 perl Makefile.PL && make && make DESTDIR=$DESTDIR install
erjo@12228 28
erjo@12228 29 }
erjo@12228 30
erjo@12228 31 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@12228 32 genpkg_rules()
erjo@12228 33 {
erjo@12228 34 mkdir -p $fs/usr
pascal@14702 35 cp -a $install/usr/lib $fs/usr
erjo@12228 36 }