aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-socket/APKBUILD
blob: 5a1fbd980e047387f232c36c1c9a8c6f18ed911f (plain)
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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-socket
_pkgreal=Socket
pkgver=2.021
pkgrel=0
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
}

md5sums="a9b64847ec6d626a1b3ad46b16adb1e4  Socket-2.021.tar.gz"
sha256sums="1ef59ca106b7ed3b3481266fe8d98ecc94790dd87f35aa09b8a09202eb01a5ec  Socket-2.021.tar.gz"
sha512sums="0cde8db80af105897b416f07e786bb29545f602ad4360c0d676f237946e278849fcbb3609ef56ef873b65618378b321e44a7425178e21cab49a55f9c57faa6ad  Socket-2.021.tar.gz"