Commit 100fbef3 authored by Jakub Jirutka's avatar Jakub Jirutka

community/perl-module-scandeps: improve abuild

parent d3b27f88
...@@ -17,18 +17,21 @@ builddir="$srcdir/$_pkgreal-$pkgver" ...@@ -17,18 +17,21 @@ builddir="$srcdir/$_pkgreal-$pkgver"
prepare() { prepare() {
default_prepare || return 1 default_prepare || return 1
cd "$builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
} }
build() { build() {
cd "$builddir" cd "$builddir"
export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test make && make test
} }
package() { package() {
cd "$builddir" cd "$builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment