mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 18:22:30 +01:00
perl-carp perl-digest-md5 perl-exporter perl-getopt-long perl-io perl-mime-base64 perl-pathtools (+ add description) perl-scalar-list-utils perl-socket perl-test-harness (+ move script to -utils subpackage) perl-test-simple
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
# Automatically generated by apkbuild-cpan, template 1
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=perl-socket
|
|
_pkgreal=Socket
|
|
pkgver=2.024
|
|
pkgrel=1
|
|
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
|
|
}
|
|
|
|
doc() {
|
|
default_doc
|
|
replaces="perl-doc"
|
|
}
|
|
|
|
md5sums="63e3c6a92e9d21ecb2d0f105a2f6be5a Socket-2.024.tar.gz"
|
|
sha256sums="38d58dcd84ca480615ba5f45a82b97b3c4cc3b7e7b27323e68adbe6daf455e12 Socket-2.024.tar.gz"
|
|
sha512sums="8a7b3a851e81459ca32382eecf517d456c7355998b9be7f15f753ce4b7c7d0fa9e95078d9ecb2beb074434ba674ef0014ec43380dbcc7c257b841a1ee20f0743 Socket-2.024.tar.gz"
|