summaryrefslogtreecommitdiffstats
path: root/main/perl-extutils-helpers/APKBUILD
blob: c3025d2f5ef79fcf6d64537670cd91d1a08ba2c7 (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-extutils-helpers
_pkgreal=ExtUtils-Helpers
pkgver=0.022
pkgrel=0
pkgdesc="Various portability utilities for module builders"
url="http://search.cpan.org/dist/ExtUtils-Helpers/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends=""
cpanmakedepends="   "
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/L/LE/LEONT/$_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="cf4fd6f8caa6daac33b1111c9e93162b  ExtUtils-Helpers-0.022.tar.gz"
sha256sums="d3f8cf700fb3414ca1260089755cbf64041455e4b744110677b1ba5bb9a3aa95  ExtUtils-Helpers-0.022.tar.gz"
sha512sums="ffdec8c1cf96daadfea34860bbd72d205620dec891d617721bb8ac242ccd2ba0cd5a5f50440633e03ae5fd575add6ac539c95ed68909a64a44b97ac2bba2bb39  ExtUtils-Helpers-0.022.tar.gz"