summaryrefslogblamecommitdiff
path: root/user/perl-list-someutils-xs/APKBUILD
blob: 55e736bbe279541af4fa8506dec02bbf684512ae (plain) (tree)

































                                                                                                                                                                            
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-list-someutils-xs
pkgver=0.58
pkgrel=0
pkgdesc="XS implementation of Perl List::SomeUtils"
url="https://metacpan.org/release/List-SomeUtils-XS"
arch="all"
license="Artistic-2.0"
depends=""
makedepends="perl-dev"
checkdepends="perl-test-leaktrace perl-test-warnings"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/List-SomeUtils-XS-$pkgver.tar.gz"
builddir="$srcdir/List-SomeUtils-XS-$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="f89f5a35224a69a59c1d512a819bd725b324f0968ea447824a42c741c4ba66ee9522db939bd3e75d190e0f2f75d54100912b83a86d5e7dd1079025a57a245c38  List-SomeUtils-XS-0.58.tar.gz"