2021-07-28 15:45:55 +00:00

44 lines
1.0 KiB
Plaintext

# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-socket
_pkgreal=Socket
pkgver=2.032
pkgrel=1
pkgdesc="networking constants and support functions"
url="https://metacpan.org/release/Socket/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
check() {
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
doc() {
default_doc
replaces="perl-doc"
}
sha512sums="
9b412ffbfa0c7fa1a8d9c474eac9d2835d65e0089c9cc1338459800a18ea472e8ea5ae02a54c01cc9524da6de0585c26dbbd5e97f5b563207083b15ba03c35f2 Socket-2.032.tar.gz
"