aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-sub-exporter/APKBUILD
blob: cdc8385bafbddaed82640bbd7bd75332c367adae (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
42
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-sub-exporter
pkgver=0.986
pkgrel=0
pkgdesc="Sub::Exporter perl module"
url="http://search.cpan.org/dist/Sub-Exporter/"
arch="noarch"
license="GPLv2 or Artistic"
depends="perl perl-data-optlist perl-sub-install"
makedepends="perl-dev"
install=""
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Sub-Exporter-$pkgver.tar.gz"

_builddir="$srcdir"/Sub-Exporter-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
	make || return 1
	make test || return 1
}

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

md5sums="bdfa41103f82ab8611af61fceed1271e  Sub-Exporter-0.986.tar.gz"
sha256sums="a7456c3216552a40f66426764d8c81815dc80bc53e3fdf67bf9234e7830b9661  Sub-Exporter-0.986.tar.gz"
sha512sums="ae2637c629229a3e0c248f968ee1f6a1126bb31cc38447218685fb5f09eaa6ea3904992e573b2a3211d4d689b0527f2d45a6b62ffedccb8cba39a98714c75bad  Sub-Exporter-0.986.tar.gz"