aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-net-smtp-ssl/APKBUILD
blob: 0dc16a743d6407e3b09186baeb7070be98b630f0 (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: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-net-smtp-ssl
_pkgreal=Net-SMTP-SSL
pkgver=1.03
pkgrel=0
pkgdesc="SSL support for Net::SMTP"
url="http://search.cpan.org/dist/Net-SMTP-SSL/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-io-socket-ssl"
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="75c80e6af5583630ba074b25c0b5ee84  Net-SMTP-SSL-1.03.tar.gz"
sha256sums="305d0fdd74bb7339d1928e738b247262c0f708149781c5771583b71d5625c917  Net-SMTP-SSL-1.03.tar.gz"
sha512sums="71e766274745893cb6eddc91a4b24d7b538051974a2cd93d4abd8447daec72907b482edb25e628cfa480c99af935568c4765e85ddfc951e0ec9b2de25c366bc8  Net-SMTP-SSL-1.03.tar.gz"