summaryrefslogtreecommitdiff
path: root/user/perl-scalar-list-utils/APKBUILD
diff options
context:
space:
mode:
authorSheila Aman <sheila@vulpine.house>2021-05-11 02:19:46 +0000
committerZach van Rijn <me@zv.io>2022-10-21 18:33:58 -0500
commit4086245c7d4bbc5db6090834b5fb3a781c8f7e29 (patch)
tree79c95d5b61ec6c041fc8d2628696d75fdd77a021 /user/perl-scalar-list-utils/APKBUILD
parent5df624a324ab5476fb382ff1b6e467dc13a19ca7 (diff)
downloadpackages-4086245c7d4bbc5db6090834b5fb3a781c8f7e29.tar.gz
packages-4086245c7d4bbc5db6090834b5fb3a781c8f7e29.tar.bz2
packages-4086245c7d4bbc5db6090834b5fb3a781c8f7e29.tar.xz
packages-4086245c7d4bbc5db6090834b5fb3a781c8f7e29.zip
user/perl-scalar-list-utils: new package
Diffstat (limited to 'user/perl-scalar-list-utils/APKBUILD')
-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"