aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-06-10 08:29:13 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-06-10 08:29:13 +0000
commit8ce0d34f656a9df05d3ce535ee4dbfa03ae6ca19 (patch)
tree97749f976cd0ae9243ed355c19e303723f32c28e /main
parent4d06e0baafe4ce00e7b6fafa468e235ffee82bbf (diff)
downloadaports-8ce0d34f656a9df05d3ce535ee4dbfa03ae6ca19.tar.bz2
aports-8ce0d34f656a9df05d3ce535ee4dbfa03ae6ca19.tar.xz
main/perl-socket: new port
Diffstat (limited to 'main')
-rw-r--r--main/perl-socket/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/main/perl-socket/APKBUILD b/main/perl-socket/APKBUILD
new file mode 100644
index 0000000000..855c3894a1
--- /dev/null
+++ b/main/perl-socket/APKBUILD
@@ -0,0 +1,42 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-socket
+_pkgreal=Socket
+pkgver=2.019
+pkgrel=0
+pkgdesc="networking constants and support functions"
+url="http://search.cpan.org/dist/Socket/"
+arch="all"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_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}'`
+ #FIXME: fail
+ make #&& make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="8afec24ac4e084e0da0600c2018ccead Socket-2.019.tar.gz"
+sha256sums="0a5188686e6b71ef3464a0d74f18bda62912b8e35aeb714483ab5f0b157a7b5e Socket-2.019.tar.gz"
+sha512sums="2b440bd1fd5cca8b6b3c9817135d165e217abdce1fa8e197744bf56c266e9287dcacfc741425b32fa1da30d58a533e5cb2687398d12115586d4d98bbc4eff1d3 Socket-2.019.tar.gz"