diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-19 20:49:20 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-19 20:51:59 +0200 |
commit | 95722d318619abcf876ffecf8fdecac9711e177b (patch) | |
tree | 8269b621d90f202ff705f4e54fddf6083b10c278 /main | |
parent | 3298e4f0aaa2c76f692dc26b0eefeef5410d44e3 (diff) | |
download | aports-95722d318619abcf876ffecf8fdecac9711e177b.tar.bz2 aports-95722d318619abcf876ffecf8fdecac9711e177b.tar.xz |
main/perl-io-socket-ssl: modernize abuild, run tests in check phase
Diffstat (limited to 'main')
-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 } |