summaryrefslogblamecommitdiff
path: root/user/perl-package-stash-xs/APKBUILD
blob: e3f4a26353421f2a42e7da0f76b0ba8503fed29b (plain) (tree)

































                                                                                                                                                                           
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-package-stash-xs
pkgver=0.28
pkgrel=0
pkgdesc="Faster and more correct implementation of Package::Stash"
url="https://metacpan.org/release/Package-Stash-XS"
arch="all"
license="Artistic-1.0-Perl"
depends=""
makedepends="perl-dev"
checkdepends="perl-test-fatal perl-test-requires"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DO/DOY/Package-Stash-XS-$pkgver.tar.gz"
builddir="$srcdir/Package-Stash-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="409e884998bf063f438335067ff8f702aa1f12fc686c1912ad532f6536a711273e52c140d9c407c47b7ba4ccacedec480c1542437a90dd76367dc0f732c0db38  Package-Stash-XS-0.28.tar.gz"