summaryrefslogblamecommitdiff
path: root/user/perl-scalar-list-utils/APKBUILD
blob: eb962dc1f01fb6e76e9b5587c16566b1060ec490 (plain) (tree)
1
2
3
4
5
6
7
8

                                                           




                               
           

























                                                                                        
                                                                                                                                                                            
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-scalar-list-utils
_pkgreal=Scalar-List-Utils
_author=PEVANS
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=1.63
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="e9e44a62181153c5e28a39df56ec14e9ed2918c6b398dd8e3d9f79669969828f6c0e5efdd02970abaf71ae258b291ad434dc4c597cf6ba4fba55cda892ac8de8  Scalar-List-Utils-1.63.tar.gz"