aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-socket/APKBUILD
blob: 968591abd46f4d76ec2d070b02b2516fb316af16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-socket
_pkgreal=Socket
pkgver=2.029
pkgrel=1
pkgdesc="networking constants and support functions"
url="http://search.cpan.org/dist/Socket/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
makedepends="perl-dev"
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
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

doc() {
	default_doc
	replaces="perl-doc"
}

sha512sums="7a59c66962638695a8e4dfab170266cdcfebce7e5143449ae3a37a2dc24910cda8cd89f45b09951f98182179c9419021c95308b0bde4dbb177dda0c677329cce  Socket-2.029.tar.gz"