summaryrefslogtreecommitdiff
path: root/user/perl-file-slurper/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:48:04 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-11-18 02:48:04 +0000
commit8c5526efa9d63920d52a86dda87dcf01a89b8b26 (patch)
treec3e65d400713550621f1cbc7c776768eeabb6a90 /user/perl-file-slurper/APKBUILD
parentfc5b3cda972651480eb6ff366b322825fcda349c (diff)
downloadpackages-8c5526efa9d63920d52a86dda87dcf01a89b8b26.tar.gz
packages-8c5526efa9d63920d52a86dda87dcf01a89b8b26.tar.bz2
packages-8c5526efa9d63920d52a86dda87dcf01a89b8b26.tar.xz
packages-8c5526efa9d63920d52a86dda87dcf01a89b8b26.zip
user/perl-file-slurper: new package
Diffstat (limited to 'user/perl-file-slurper/APKBUILD')
-rw-r--r--user/perl-file-slurper/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-file-slurper/APKBUILD b/user/perl-file-slurper/APKBUILD
new file mode 100644
index 000000000..ae7fc93ec
--- /dev/null
+++ b/user/perl-file-slurper/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
+pkgname=perl-file-slurper
+_pkgname=File-Slurper
+pkgver=0.012
+pkgrel=0
+pkgdesc="Efficient file slurper for Perl"
+url="https://metacpan.org/release/File-Slurper"
+arch="noarch"
+license="Artistic-1.0-Perl OR GPL-2.0-only"
+depends=""
+checkdepends="perl-test-warnings"
+makedepends="perl-dev"
+subpackages="$pkgname-doc"
+source="https://cpan.metacpan.org/authors/id/L/LE/LEONT/File-Slurper-$pkgver.tar.gz"
+builddir="$srcdir/File-Slurper-$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="276b510c85b4e28fff4b8bd77c81031367b073426138743efb5d54fe01fa9825409f86090788779e96625b43207d1f864f348cc11554c51d36868dfed568f2bb File-Slurper-0.012.tar.gz"