summaryrefslogtreecommitdiff
path: root/user/perl-text-sprintf-named
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 23:15:29 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-01 23:15:29 +0000
commita691830f7bee520f2286efa99a823300edccd29d (patch)
tree40484ce1f1cc6b48c6c4a500d1a68f3ac3fac10c /user/perl-text-sprintf-named
parent74e8c7e923ee043dbed463026b61b6a3ee3e0a62 (diff)
downloadpackages-a691830f7bee520f2286efa99a823300edccd29d.tar.gz
packages-a691830f7bee520f2286efa99a823300edccd29d.tar.bz2
packages-a691830f7bee520f2286efa99a823300edccd29d.tar.xz
packages-a691830f7bee520f2286efa99a823300edccd29d.zip
user/perl-text-sprintf-named: new package
Diffstat (limited to 'user/perl-text-sprintf-named')
-rw-r--r--user/perl-text-sprintf-named/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-text-sprintf-named/APKBUILD b/user/perl-text-sprintf-named/APKBUILD
new file mode 100644
index 000000000..210880dd4
--- /dev/null
+++ b/user/perl-text-sprintf-named/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-text-sprintf-named
+pkgver=0.0403
+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-module-build"
+makedepends="perl-dev"
+checkdepends="perl-test-warn"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Text-Sprintf-Named-$pkgver.tar.gz"
+builddir="$srcdir/Text-Sprintf-Named-$pkgver"
+
+build() {
+ cd "$builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+ make
+}
+
+check() {
+ cd "$builddir"
+ make test
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+sha512sums="93e56c8850274625e3156826f57d40820632dde24e9ebbfdf502d83d29c9796faac25a422e5a15d0c97fb67424f9d9abd93437e3eb0818c8338f42a59bc3adb3 Text-Sprintf-Named-0.0403.tar.gz"