aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-email-mime-attachment-stripper/APKBUILD
blob: d0ba75165978104b0865dc0e680addacddcede51 (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
38
39
40
41
# 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=0
pkgdesc="strip the attachments from an email"
url="http://search.cpan.org/dist/Email-MIME-Attachment-Stripper/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-email-mime-contenttype perl-email-mime"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"

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

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

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	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"