48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
|
|
|
_realname=HTTP-Message
|
|
pkgname=perl-${_realname}
|
|
pkgver=7.00
|
|
pkgrel=1
|
|
pkgdesc="HTTP style messages"
|
|
arch=(any)
|
|
url="https://metacpan.org/release/HTTP-Message"
|
|
msys2_references=(
|
|
'purl: pkg:cpan/OALDERS/HTTP-Message'
|
|
)
|
|
groups=('perl-modules')
|
|
license=('PerlArtistic' 'GPL')
|
|
options=('!emptydirs')
|
|
depends=('perl>=5.8.8' 'perl-Clone' 'perl-Encode-Locale>=1'
|
|
'perl-IO-HTML' 'perl-HTTP-Date>=6'
|
|
'perl-LWP-MediaTypes>=6' 'perl-URI>=1.10')
|
|
makedepends=('perl-Try-Tiny')
|
|
conflicts=('perl-libwww<6')
|
|
source=("https://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/${_realname}-${pkgver}.tar.gz")
|
|
sha256sums=('5afa95eb6ed1c632e81656201a2738e2c1bc6cbfae2f6d82728e2bb0b519c1dc')
|
|
|
|
build() {
|
|
( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \
|
|
PERL_AUTOINSTALL=--skipdeps \
|
|
PERL_MM_OPT="INSTALLDIRS=vendor" \
|
|
PERL_MB_OPT="--installdirs vendor" \
|
|
MODULEBUILDRC=/dev/null
|
|
|
|
cd ${_realname}-${pkgver}
|
|
/usr/bin/perl Makefile.PL
|
|
make
|
|
)
|
|
}
|
|
|
|
check() {
|
|
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
|
|
cd ${_realname}-${pkgver}
|
|
make test
|
|
)
|
|
}
|
|
|
|
package() {
|
|
cd ${_realname}-${pkgver}
|
|
make DESTDIR="$pkgdir" install
|
|
}
|