summaryrefslogtreecommitdiff
path: root/user/perl-regexp-common/APKBUILD
blob: 79822d1c77a4fe7114a23718dca30429169add74 (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
34
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-regexp-common
_pkgreal=Regexp-Common
_author=ABIGAIL
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2017060201
pkgrel=0
pkgdesc="Perl library for common regular expression utilities"
url="https://metacpan.org/pod/Regexp::Common"
arch="noarch"
license="Artistic-1.0-Perl OR Artistic-2.0 OR BSD-3-Clause OR MIT"
depends="perl"
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="fd046d775214bdca42f868557559595360b069121a75fc119f45e064091000968d9d84154f8a0f06072ecff169dccecf68be58f99a7196932fcb4ffcbd678608  Regexp-Common-2017060201.tar.gz"