summaryrefslogtreecommitdiff
path: root/user/perl-list-someutils/APKBUILD
blob: 80a5e64ee2ee81208db9b60859764a97f9662423 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-list-someutils
pkgver=0.56
pkgrel=0
pkgdesc="Provide the stuff missing in Perl's List::Util module"
url="https://metacpan.org/release/List-SomeUtils"
arch="noarch"
license="Artistic-1.0-Perl"
depends="perl-list-someutils-xs perl-module-implementation"
makedepends="perl-dev"
checkdepends="perl-test-leaktrace"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/List-SomeUtils-$pkgver.tar.gz"
builddir="$srcdir/List-SomeUtils-$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="b74c2a97811185d21bfd68fe60606afe8e92c266e98a763d51589021c9b3ae5310275005dc80198b8f9d92118fed569b5251d5ad87643f47af75a478db388503  List-SomeUtils-0.56.tar.gz"