mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-18 23:22:24 +01:00
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
# Automatically generated by apkbuild-cpan, template 1
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=perl-socket
|
|
_pkgreal=Socket
|
|
pkgver=2.027
|
|
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}')
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
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"
|
|
}
|
|
|
|
sha512sums="f9a016ec3ecce4f7a75ce1630c05df15b774846e1de2dbbddaeb6b5f03665ff798e1a55a180b0ea83968b6f225ff857522593f570ac8c16c3a855b73be7881de Socket-2.027.tar.gz"
|