aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-email-abstract/APKBUILD
blob: 5cfc5c939620ba2b3ea35cfdd4ed7bcc88fd0546 (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 <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-email-abstract
_pkgreal=Email-Abstract
pkgver=3.008
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/Email-Abstract/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-mro-compat perl-email-simple perl-module-pluggable"
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="dbfc069ffb5f8c96989bf62f0df5d756  Email-Abstract-3.008.tar.gz"
sha256sums="fc7169acb6c43df7f005e7ef6ad08ee8ca6eb6796b5d1604593c997337cc8240  Email-Abstract-3.008.tar.gz"
sha512sums="efead64612562fb9d644fa830b2f29e0701af0f3ddeb118992badff7c7a45cb569ad4644a7b226cc625cdabfb3f5db155284eb68042928265bfc5c230f4bf40a  Email-Abstract-3.008.tar.gz"