# Contributor: Duncan Bellamy # Maintainer: Duncan Bellamy pkgname=perl-lib-relative pkgver=1.002 pkgrel=0 pkgdesc="Add paths relative to the current file to @INC" url="https://metacpan.org/pod/lib::relative" arch="noarch" license="GPL-2.0-only" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/D/DB/DBOOK/lib-relative-$pkgver.tar.gz" builddir="$srcdir/lib-relative-$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=" af015fb454636d40c6364aa898d316387481f08bd5b2b0ff0c2acc1646f38f8766c39249179df59d97f3d4211d952c8acf659b9fc087d89606293d36f1998693 lib-relative-1.002.tar.gz "