wok-6.x annotate perl-http-parser/receipt @ rev 25539

Up perl-test-compile (3.1.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 09 12:11:13 2023 +0000 (21 months ago)
parents 1805f71c5d9f
children
rev   line source
erjo@11837 1 # SliTaz package receipt.
erjo@11837 2
erjo@11837 3 PACKAGE="perl-http-parser"
erjo@11837 4 VERSION="0.06"
erjo@11837 5 CATEGORY="development"
erjo@11837 6 SHORT_DESC="parse HTTP/1.1 request into HTTP::Request/Response object"
erjo@11837 7 MAINTAINER="erjo@slitaz.org"
pascal@14702 8 LICENSE="GPL"
pascal@25539 9 WEB_SITE="https://metacpan.org/dist/HTTP-Parser"
erjo@11837 10 SOURCE="HTTP-Parser"
erjo@11837 11 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@24976 12 WGET_URL="https://cpan.metacpan.org/authors/id/E/ED/EDECA/$TARBALL"
erjo@11837 13
erjo@11837 14 DEPENDS="perl-http-message perl-uri"
erjo@11837 15 BUILD_DEPENDS="perl $DEPENDS"
erjo@11837 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@11837 23 # Rules to configure and make the package.
erjo@11837 24 compile_rules()
erjo@11837 25 {
erjo@11837 26 perl Makefile.PL &&
erjo@11837 27 make &&
erjo@11837 28 make DESTDIR=$DESTDIR install
erjo@11837 29 }
erjo@11837 30
erjo@11837 31 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@11837 32 genpkg_rules()
erjo@11837 33 {
erjo@11837 34 mkdir -p $fs/usr
pascal@14702 35 cp -a $install/usr/lib $fs/usr
erjo@11837 36 }