2023-07-03 18:51:58 +02:00

37 lines
1.0 KiB
Plaintext

# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-socket
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Socket
pkgver=2.037
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"
depends="perl"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Socket-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
make
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
6ba41fe170c497be187d3a20918d0c7da548df9329c0a5be6c8ef736a534cd7a0e39dca1f0274e22bdbede570e244ed21be3615efe7cc6b9e251934b6fdace84 Socket-2.037.tar.gz
"