aboutsummaryrefslogblamecommitdiffstats
path: root/community/perl-string-rewriteprefix/APKBUILD
blob: 31a64c1b11c02e62e26efe01f645000a0b5dad71 (plain) (tree)
1
2
3
4
5
6
7





                                                      
        


























                                                                                                                                                                                
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Timothy Legge <timlegge@gmail.com>
# Maintainer: Timothy Legge <timlegge@gmail.com>
pkgname=perl-string-rewriteprefix
_pkgreal=String-RewritePrefix
pkgver=0.008
pkgrel=1
pkgdesc="rewrite strings based on a set of known prefixes"
url="https://metacpan.org/release/String-RewritePrefix/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-sub-exporter"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/String-RewritePrefix-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

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

sha512sums="9aa814c28863453f3e684f96914462bf09d72d909aa41452b08748e6a47a9c1c2aad5b6e56091dae546c62b0d3d9db0b087f8af12c085e86c69ac8e08c610611  String-RewritePrefix-0.008.tar.gz"