summaryrefslogtreecommitdiff
path: root/user/perl-file-slurp/APKBUILD
blob: b4a84c3ee9998fe9aef8db9f709f247aae9bb22e (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-file-slurp
pkgver=9999.25
pkgrel=0
pkgdesc="Simple and efficient file manipulation in Perl"
url="https://metacpan.org/release/File-Slurp"
arch="noarch"
license="Artistic-1.0-Perl"
depends=""
makedepends="perl-dev"
subpackages="$pkgname-doc"
#source="https://cpan.metacpan.org/authors/id/U/UR/URI/File-Slurp-$pkgver.tar.gz"
source="https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/File-Slurp-$pkgver.tar.gz"
builddir="$srcdir/File-Slurp-$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="cea59f2aecfe314540c1022c44ce85d5d53a3c69273b71a727acbfacbd09a9e45ef435c61b28d8d883a758e29c296ca98167dceed74bbf3a278fe5fa7019ce8a  File-Slurp-9999.25.tar.gz"