summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheila Aman <sheila@vulpine.house>2021-05-11 02:19:46 +0000
committerZach van Rijn <me@zv.io>2022-06-12 23:51:39 +0000
commiteed1c64e51bda34e47350570b125738e4e64e448 (patch)
treeb375749ef9c3f7504a68ffbf5190248709338e14
parentf3f5dba3be395219159129c57c45c43db5c36ec6 (diff)
downloadpackages-eed1c64e51bda34e47350570b125738e4e64e448.tar.gz
packages-eed1c64e51bda34e47350570b125738e4e64e448.tar.bz2
packages-eed1c64e51bda34e47350570b125738e4e64e448.tar.xz
packages-eed1c64e51bda34e47350570b125738e4e64e448.zip
user/perl-scalar-list-utils: new package
-rw-r--r--user/perl-scalar-list-utils/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/user/perl-scalar-list-utils/APKBUILD b/user/perl-scalar-list-utils/APKBUILD
new file mode 100644
index 000000000..0bbcc82d0
--- /dev/null
+++ b/user/perl-scalar-list-utils/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Sheila Aman <sheila@vulpine.house>
+# Maintainer: Sheila Aman <sheila@vulpine.house>
+pkgname=perl-scalar-list-utils
+_pkgreal=Scalar-List-Utils
+_author=PEVANS
+_au=${_author%%"${_author#??}"}
+_a=${_author%%"${_author#?}"}
+pkgver=1.56
+pkgrel=0
+pkgdesc="Perl collection of utility functions for scalars, lists, and subs"
+url="https://metacpan.org/release/Scalar-List-Utils"
+arch="all"
+license="GPL-1.0+ OR Artistic-1.0-Perl"
+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() {
+ export CFLAGS="$(perl -MConfig -E 'say $Config{ccflags}')"
+ 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="90291e154497599e7e41b6746dc29351c619201b5723eedfa76dee81d0db4ae28ad598355edc61c529de5c05d5eafc17ae6c3205f0c624fc2a028ecbac9f2c3f Scalar-List-Utils-1.56.tar.gz"