aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-regexp-common/APKBUILD
blob: faf0ff1e0f5355b0cf0093db5544a55743f9bd6d (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: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-regexp-common
_pkgreal=Regexp-Common
pkgver=2013031301
pkgrel=0
pkgdesc="Provide commonly requested regular expressions"
url="http://search.cpan.org/dist/Regexp-Common/"
arch="noarch"
license="mit"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AB/ABIGAIL/$_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 && make test
}

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

md5sums="2b9c335312dcfd9980ff7acbad0e5905  Regexp-Common-2013031301.tar.gz"
sha256sums="729a8198d264aa64ecbb233ff990507f97fbb66bda746b95f3286f50f5f25c84  Regexp-Common-2013031301.tar.gz"
sha512sums="2fad761c169be76771856938a53f28dab232cb44cea4e22f56869754633f9a38f94568096ac0f21a885e6dd11049f401c8957b04929eee6802b8454c4fe4f62a  Regexp-Common-2013031301.tar.gz"