Skip to content
Snippets Groups Projects
Commit 501be425 authored by Timothy Legge's avatar Timothy Legge
Browse files

main/perl-test-file-sharedir: remove unnecessary perl-dev from makedepends

parent f13ca834
No related branches found
No related tags found
No related merge requests found
......@@ -8,39 +8,30 @@ pkgrel=2
pkgdesc="Create a Fake ShareDir for your modules for testing."
url="https://metacpan.org/release/Test-File-ShareDir/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-class-tiny perl-file-sharedir perl-file-copy-recursive perl-path-tiny perl-scope-guard"
cpanmakedepends=""
cpancheckdepends="perl-test-fatal"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-class-tiny perl-file-sharedir perl-file-copy-recursive perl-path-tiny perl-scope-guard"
checkdepends="perl-test-fatal"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/K/KE/KENTNL/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment