summaryrefslogtreecommitdiff
path: root/user/perl-sub-exporter/APKBUILD
blob: a4fceb691ea10fad5e73b43726e407b916273b2f (plain) (blame)
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
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-sub-exporter
_pkgreal=Sub-Exporter
_author=RJBS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.990
pkgrel=0
pkgdesc="A sophisticated exporter for custom-built routines"
url="https://metacpan.org/release/Sub-Exporter"
arch="noarch"
license="GPL-1.0+ OR Artistic-1.0-Perl"
depends="perl-data-optlist perl-sub-install perl-params-util"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="49cc16efe0e44a5d8d1aa49bd2f35ebb43640ce27030d480e1acae1da13444a877007f7eb924d6e3743691222505d646744cc651fbd09850cd965673fac2d92b  Sub-Exporter-0.990.tar.gz"