summaryrefslogtreecommitdiff
path: root/user/perl-file-slurper/APKBUILD
blob: b9bff1bf6095460139cbbe220e0738be6a0ba28b (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
35
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-file-slurper
_pkgreal=File-Slurper
_author=LEONT
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.012
pkgrel=0
pkgdesc="Efficient file slurper for Perl"
url="https://metacpan.org/release/File-Slurper"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl"
checkdepends="perl-test-warnings"
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() {
	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="276b510c85b4e28fff4b8bd77c81031367b073426138743efb5d54fe01fa9825409f86090788779e96625b43207d1f864f348cc11554c51d36868dfed568f2bb  File-Slurper-0.012.tar.gz"