aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-net-patricia/APKBUILD
blob: 1e614026d21c4e3c78129a8aad56dd842c902535 (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
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=perl-net-patricia
_pkgreal=Net-Patricia
pkgver=1.20
pkgrel=0
pkgdesc="unknown"
url="http://search.cpan.org/dist/Net-Patricia/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-net-cidr-lite perl-socket6"
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/G/GR/GRUBER/$_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
}

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

md5sums="d5499f5bc1d6c36538a84153095ea11f  Net-Patricia-1.20.tar.gz"
sha256sums="bbec37f44384346b53daf2599bf1a3dd0726cde946e7cff56f3f6ac0ace072ef  Net-Patricia-1.20.tar.gz"
sha512sums="27ae23b86ed2b2b0e1439d33a167f6b83d636f33c4e3bed6ac3967eaa10a3350645d3ec509e0949db8b290e608f2bc4207370ab075be30177ac1e2a9367f0448  Net-Patricia-1.20.tar.gz"