diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-08-21 14:49:03 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-08-21 14:50:06 +0300 |
commit | 2ceeae3204d00f58cef14f90cd79df32e327c266 (patch) | |
tree | f86e9e88689bdedef74504cff7d00f7206d00a10 /testing/perl-io-socket-inet6/APKBUILD | |
parent | eb55626bb2ba19f3ae9911a82709dc9c994c8389 (diff) | |
download | aports-2ceeae3204d00f58cef14f90cd79df32e327c266.tar.bz2 aports-2ceeae3204d00f58cef14f90cd79df32e327c266.tar.xz |
testing/perl-io-socket-inet6: new aport
Object interface for AF_INET|AF_INET6 domain sockets
http://search.cpan.org/dist/IO-Socket-INET6/
Diffstat (limited to 'testing/perl-io-socket-inet6/APKBUILD')
-rw-r--r-- | testing/perl-io-socket-inet6/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/perl-io-socket-inet6/APKBUILD b/testing/perl-io-socket-inet6/APKBUILD new file mode 100644 index 0000000000..50d63a78c1 --- /dev/null +++ b/testing/perl-io-socket-inet6/APKBUILD @@ -0,0 +1,39 @@ +# Automatically generated by apkbuild-cpan, template 1 +# Contributor: Timo Teräs <timo.teras@iki.fi> +# Maintainer: Timo Teräs <timo.teras@iki.fi> +pkgname=perl-io-socket-inet6 +_pkgreal=IO-Socket-INET6 +pkgver=2.69 +pkgrel=0 +pkgdesc="Object interface for AF_INET|AF_INET6 domain sockets" +url="http://search.cpan.org/dist/IO-Socket-INET6/" +arch="noarch" +license="GPL PerlArtistic" +cpandepends="perl-socket6" +cpanmakedepends=" " +depends="$cpandepends" +makedepends="perl-dev $cpanmakedepends" +subpackages="$pkgname-doc" +source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_pkgreal-$pkgver.tar.gz" + +_builddir="$srcdir/$_pkgreal-$pkgver" + +prepare() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + perl Build.PL installdirs=vendor || return 1 +} + +build() { + cd "$_builddir" + export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + ./Build && ./Build test +} + +package() { + cd "$_builddir" + ./Build install destdir="$pkgdir" || return 1 + find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete +} + +md5sums="12a80a5164a775294a9bf9c812fc3257 IO-Socket-INET6-2.69.tar.gz" |