summaryrefslogtreecommitdiff
path: root/user/perl-text-sprintf-named/APKBUILD
blob: 24ab2c1c93667796eddcd48492978adfc006b558 (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
35
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-text-sprintf-named
_pkgreal=Text-Sprintf-Named
_author=SHLOMIF
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.0405
pkgrel=0
pkgdesc="sprintf-like function for Perl with named conversions"
url="https://metacpan.org/release/Text-Sprintf-Named"
arch="noarch"
license="MIT"
depends="perl perl-module-build"
checkdepends="perl-test-warn"
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="dfcc12e4ffeddfc8b30840c262265e4517c9fb5c9bdb67973df16132ad11ce14aab4e1b8eace3b31404e8cefd7f81611a13bd2e94f9b510a9c34030f05665cae  Text-Sprintf-Named-0.0405.tar.gz"