summaryrefslogtreecommitdiffstats
path: root/main/perl-test-tcp/APKBUILD
blob: 8ab790f68d7cc8436666eb22666d5c65c40263fb (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
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-test-tcp
_pkgreal=Test-TCP
pkgver=2.01
pkgrel=0
pkgdesc="testing TCP program"
url="http://search.cpan.org/dist/Test-TCP/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-test-sharedfork"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	perl Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
	export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

package() {
	cd "$_builddir"
	./Build install destdir="$pkgdir" || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="6d86932561523b8253cb55424d2a7571  Test-TCP-2.01.tar.gz"
sha256sums="06796023e38c63d9a5637c71d05ed09547a3c1e0ddf9d3929190dbf8e1a4219f  Test-TCP-2.01.tar.gz"
sha512sums="431a47a7877aaa5b9c7d4b5fb47a7f75c34cd235c3d69b2e7de60e72d9ab2f09e17da1a953ee7e2da01166856df31099175d67696dbe927e0241c081d6193651  Test-TCP-2.01.tar.gz"