aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-mail-imapclient/APKBUILD
blob: c1c98a17feecd87e08da3675e02459f11342bace (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: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=perl-mail-imapclient
_pkgreal=Mail-IMAPClient
pkgver=3.38
pkgrel=0
pkgdesc="IMAP4 client library"
url="http://search.cpan.org/dist/Mail-IMAPClient/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-parse-recdescent"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/P/PL/PLOBBES/$_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="81890b7764ebfae96cf66262c6aea9af  Mail-IMAPClient-3.38.tar.gz"
sha256sums="d0f346d111dba93548ceac1192a993210ffcd5f81f83638ee277607bfacc1a4d  Mail-IMAPClient-3.38.tar.gz"
sha512sums="aa2d4ae43ac221db5b99d20884d34ce41fabdc593cee48e7daf7d7048dd351026231f9a4193044f42eb17c8d303b5af0b924bea17fed27c4d0934ca2935b73f3  Mail-IMAPClient-3.38.tar.gz"