aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-email-mime-attachment-stripper/APKBUILD
blob: b011aa5b2631b34d804a65a6d68bffefb8f98d16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-email-mime-attachment-stripper
_pkgreal=Email-MIME-Attachment-Stripper
pkgver=1.317
pkgrel=1
pkgdesc="strip the attachments from an email"
url="https://metacpan.org/release/Email-MIME-Attachment-Stripper"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-email-mime-contenttype perl-email-mime"
depends="$cpandepends"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"

builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make && make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="aa8a51d9795f24e409944c45ea16bf7b  Email-MIME-Attachment-Stripper-1.317.tar.gz"
sha256sums="dcb98b09dc3e8f757ec3882a4234548108bb2d12e3cfadf95a26cef381a9e789  Email-MIME-Attachment-Stripper-1.317.tar.gz"
sha512sums="bb4dd9aa8cfbbeb1e62cb687f3d8219e0eed87acd95c31291b6ad39e870c5a344d478d7794762205a5d66ebd7ba3cd70151b791a1100d677f3a70a538c0c1063  Email-MIME-Attachment-Stripper-1.317.tar.gz"