aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-email-abstract/APKBUILD
blob: d713f5cc53b770d18721238c1fd38cddcd7d24e3 (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-abstract
_pkgreal=Email-Abstract
pkgver=3.007
pkgrel=1
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="a1e9d40882ee32cf5e329297aba9e3ed  Email-Abstract-3.007.tar.gz"
sha256sums="10915aa3a558f6ba9c51a13ea1c135aed765e185a14cd2cfc9b434599cf5eaa8  Email-Abstract-3.007.tar.gz"
sha512sums="84fa3500dc5ff69315b93e6a6bc1e8f162b9ea99672aee4c05a30b83ca94407b584b0a9dbec202b1471f8cb3ec12a57b2b86fb43901782b85ad4280b97434e7a  Email-Abstract-3.007.tar.gz"