APKBUILD 1.15 KB
Newer Older
Leo's avatar
Leo committed
1
# Automatically generated by apkbuild-cpan, template 3
2
3
4
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-file-listing
Leo's avatar
Leo committed
5
6
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=File-Listing
Leo's avatar
Leo committed
7
pkgver=6.14
Leo's avatar
Leo committed
8
9
10
pkgrel=0
pkgdesc="Parse directory listing"
replaces="perl-libwww"
11
url="https://metacpan.org/release/File-Listing/"
12
arch="noarch"
Leo's avatar
Leo committed
13
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
14
15
16
depends="perl perl-http-date"
makedepends="perl-dev"
subpackages="$pkgname-doc"
Leo's avatar
Leo committed
17
18
source="https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/File-Listing-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
19
20

build() {
Leo's avatar
Leo committed
21
22
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
23
24
25
26
	make
}

check() {
Leo's avatar
Leo committed
27
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
28
	make test
29
30
31
}

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

Leo's avatar
Leo committed
36
37

sha512sums="858339b15a455db570d15b02e801ab0e0afd47da71685002083cbcc1a0f89783fcad4e840e0381f186046ab2f355dc0f593dc8c9c0a2da0fc6f17a35265924ab  File-Listing-6.14.tar.gz"