upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / perl-mail-message / trunk / PKGBUILD
blob2f330e151a1a4826407ae1672462e8865c1b4fc7
1 # Maintainer: Sergej Pupykin <arch+pub@sergej.pp.ru>
3 pkgname='perl-mail-message'
4 pkgver=3.012
5 pkgrel=1
6 pkgdesc="container for MIME-encoded message information"
7 arch=('any')
8 license=('PerlArtistic' 'GPL')
9 options=('!emptydirs')
10 depends=('perl' 'perl-user-identity' 'perl-mailtools' 'perl-mime-types'
11          'perl-io-stringy' 'perl-uri')
12 makedepends=()
13 url='https://search.mcpan.org/dist/Mail-Message'
14 source=("https://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/Mail-Message-$pkgver.tar.gz")
15 sha256sums=('e92b0020e0cb11cca92f93df9dd32441d78b84a3c4b72094c0a70310253cac9e')
17 build() {
18   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""                 \
19       PERL_AUTOINSTALL=--skipdeps                            \
20       PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'"     \
21       PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \
22       MODULEBUILDRC=/dev/null
24     cd "$srcdir/Mail-Message-$pkgver"
25     /usr/bin/perl Makefile.PL
26     make
27   )
30 check() {
31   cd "$srcdir/Mail-Message-$pkgver"
33   ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
34     make test
35   )
38 package() {
39   cd "$srcdir/Mail-Message-$pkgver"
40   make install
41   find "$pkgdir" -name .packlist -o -name perllocal.pod -delete