From 100fbef33efcaf58ed6abddf669d5a56f8a885be Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 18 Sep 2016 18:24:29 +0200 Subject: community/perl-module-scandeps: improve abuild --- community/perl-module-scandeps/APKBUILD | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'community') diff --git a/community/perl-module-scandeps/APKBUILD b/community/perl-module-scandeps/APKBUILD index 3951f93aab4..cdd21488d9a 100644 --- a/community/perl-module-scandeps/APKBUILD +++ b/community/perl-module-scandeps/APKBUILD @@ -17,18 +17,21 @@ builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare || return 1 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 } build() { cd "$builddir" - export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` + + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make && make test } package() { cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } -- cgit v1.2.3