aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-file-listing/APKBUILD
blob: 245cfe84d18034bfebea13309ce9739887f3ea35 (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
36
# Automatically generated by apkbuild-cpan, template 3
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-listing
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=File-Listing
pkgver=6.11
pkgrel=0
pkgdesc="Parse directory listing"
replaces="perl-libwww"
url="https://metacpan.org/release/File-Listing/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-http-date"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/File-Listing-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="7ed450b86bf39602c7d28fea330122a6c3991784ed660b20c532f157097c8abef99ba26fce2b965af1e114ef7ce2e5e5aa7f7b0638beaa08719e81ade7b9835a  File-Listing-6.11.tar.gz"