diff options
-rw-r--r-- | main/perl-io-socket-ssl/APKBUILD | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/main/perl-io-socket-ssl/APKBUILD b/main/perl-io-socket-ssl/APKBUILD index cf5223c8a6..3b9fec8868 100644 --- a/main/perl-io-socket-ssl/APKBUILD +++ b/main/perl-io-socket-ssl/APKBUILD @@ -1,31 +1,38 @@ -# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-io-socket-ssl -_realname=IO-Socket-SSL -pkgver=1.54 +_pkgreal=IO-Socket-SSL +pkgver=1.60 pkgrel=0 -pkgdesc="Nearly transparent SSL encapsulation for IO::Socket::INET" +pkgdesc="Nearly transparent SSL encapsulation for IO::Socket::INET." url="http://search.cpan.org/dist/IO-Socket-SSL/" arch="noarch" -license="GPL" -depends="perl perl-net-ssleay" -makedepends="perl-dev" -install= +license="GPL PerlArtistic" +cpandepends="perl-net-ssleay" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" subpackages="$pkgname-doc" -source="http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-$pkgver.tar.gz" +source="http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/$_pkgreal-$pkgver.tar.gz" -build() { - cd "$srcdir/$_realname-$pkgver" +_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 +} - PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1 - make || return 1 +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + make && make test } package() { - cd "$srcdir/$_realname-$pkgver" - make DESTDIR="$pkgdir" install - # creates file collision among perl modules - find "$pkgdir" -name perllocal.pod -delete + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -md5sums="3d091d3de33a8ca2fe5f75172b1a329b IO-Socket-SSL-1.54.tar.gz" +md5sums="46d8933dcca9ef58c87c7eb3cd2cd214 IO-Socket-SSL-1.60.tar.gz" |