diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 45 | ||||
-rw-r--r-- | PKGBUILD.tt | 45 |
4 files changed, 117 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2aae0b4be280 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = perl-http-entity-parser + pkgdesc = PSGI compliant HTTP Entity Parser + pkgver = 0.21 + pkgrel = 1 + url = https://metacpan.org/release/HTTP-Entity-Parser + arch = any + license = PerlArtistic + license = GPL + checkdepends = perl-http-message>=6.00 + makedepends = perl-module-build-tiny>=0.035 + depends = perl-http-multipartparser + depends = perl-hash-multivalue + depends = perl-json-maybexs>=1.003007 + depends = perl-stream-buffered + depends = perl-www-form-urlencoded>=0.23 + options = !emptydirs + source = http://search.cpan.org/CPAN/authors/id/K/KA/KAZEBURO/HTTP-Entity-Parser-0.21.tar.gz + md5sums = 50e8418bfe27ab26818ca6e264052c95 + +pkgname = perl-http-entity-parser + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e6b6b4b8077d --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.tar.gz +*.tar.bz2 +*.tar.xz +*.tar.lz +src/ +pkg/
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..63c0bfe508b5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# CPAN Name : HTTP::Entity::Parser +# Contributor: Anton Leontiev <scileont /at/ gmail.com> +# Generator : CPANPLUS::Dist::Arch 1.32 + +pkgname=perl-http-entity-parser +pkgver=0.21 +pkgrel=1 +pkgdesc='PSGI compliant HTTP Entity Parser' +arch=('any') +url='https://metacpan.org/release/HTTP-Entity-Parser' +license=('PerlArtistic' 'GPL') + +depends=('perl-http-multipartparser' 'perl-hash-multivalue' + 'perl-json-maybexs>=1.003007' 'perl-stream-buffered' + 'perl-www-form-urlencoded>=0.23') +makedepends=('perl-module-build-tiny>=0.035') +checkdepends=('perl-http-message>=6.00') +source=(http://search.cpan.org/CPAN/authors/id/K/KA/KAZEBURO/HTTP-Entity-Parser-0.21.tar.gz) +options=(!emptydirs) +md5sums=('50e8418bfe27ab26818ca6e264052c95') + +sanitize() { + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" MODULEBUILDRC=/dev/null +} + +build() { + cd HTTP-Entity-Parser-0.21 + sanitize + /usr/bin/perl Build.PL --installdirs vendor --destdir "$pkgdir" + /usr/bin/perl Build +} + +check() { + cd HTTP-Entity-Parser-0.21 + sanitize + /usr/bin/perl Build test +} + +package() { + cd HTTP-Entity-Parser-0.21 + sanitize + /usr/bin/perl Build install + find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete +} diff --git a/PKGBUILD.tt b/PKGBUILD.tt new file mode 100644 index 000000000000..137b68c7ebc7 --- /dev/null +++ b/PKGBUILD.tt @@ -0,0 +1,45 @@ +# CPAN Name : HTTP::Entity::Parser +# Contributor: [% packager %] +# Generator : CPANPLUS::Dist::Arch [% version %] + +pkgname=[% pkgname %] +pkgver=[% pkgver %] +pkgrel=[% pkgrel %] +pkgdesc='PSGI compliant HTTP Entity Parser' +arch=('any') +url='[% url %]' +license=('PerlArtistic' 'GPL') + +depends=('perl-http-multipartparser' 'perl-hash-multivalue' + 'perl-json-maybexs>=1.003007' 'perl-stream-buffered' + 'perl-www-form-urlencoded>=0.23') +makedepends=('perl-module-build-tiny>=0.035') +checkdepends=('perl-http-message>=6.00') +source=([% source %]) +options=(!emptydirs) +md5sums=('[% md5sums %]') + +sanitize() { + unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT + export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" MODULEBUILDRC=/dev/null +} + +build() { + cd [% distdir %] + sanitize + /usr/bin/perl Build.PL --installdirs vendor --destdir "$pkgdir" + /usr/bin/perl Build +} + +check() { + cd [% distdir %] + sanitize + /usr/bin/perl Build test +} + +package() { + cd [% distdir %] + sanitize + /usr/bin/perl Build install + find "$pkgdir" \( -name .packlist -o -name perllocal.pod \) -delete +} |