diff options
-rw-r--r-- | main/perl-io-socket-ssl/APKBUILD | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/main/perl-io-socket-ssl/APKBUILD b/main/perl-io-socket-ssl/APKBUILD index 4ecadb44db..077642a7bc 100644 --- a/main/perl-io-socket-ssl/APKBUILD +++ b/main/perl-io-socket-ssl/APKBUILD @@ -1,36 +1,37 @@ -# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=perl-io-socket-ssl _pkgreal=IO-Socket-SSL pkgver=2.027 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 PerlArtistic" -cpandepends="perl-net-ssleay" -cpanmakedepends=" " -depends="$cpandepends ca-certificates perl-net-libidn" -makedepends="perl-dev $cpanmakedepends" +depends="ca-certificates perl-net-libidn" +makedepends="perl-dev perl-net-ssleay" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/$_pkgreal-$pkgver.tar.gz" - -_builddir="$srcdir/$_pkgreal-$pkgver" +builddir="$srcdir/$_pkgreal-$pkgver" prepare() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + default_prepare + + cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { - cd "$_builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` - make && make test + cd "$builddir" + make +} + +check() { + cd "$builddir" + make test } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } |