apkbuild-cpan.in: fix empty directories
by not installing .packlist and perllocal.pod. The call to find -delete has been removed as the modifications to build() have covered almost all cases, so deleting .packlist and perllocal.pod manually is no longer necessary. Also, increment template version from 3 to 4 to allow easy identification of aports that have this change applied.
This commit is contained in:
parent
7101d6164a
commit
fe072f9866
|
@ -35,7 +35,7 @@ my $package_mappings = {
|
|||
};
|
||||
our $packager = "";
|
||||
my $template = <<'EOF';
|
||||
# Automatically generated by apkbuild-cpan, template 3
|
||||
# Automatically generated by apkbuild-cpan, template 4
|
||||
[% authors %]
|
||||
pkgname=[% pkgname %]
|
||||
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
|
||||
|
@ -264,14 +264,15 @@ sub update_functions {
|
|||
$build_func = <<'EOF';
|
||||
build() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
perl Build.PL --installdirs=vendor
|
||||
perl Build.PL \
|
||||
--installdirs=vendor \
|
||||
--create_packlist=0
|
||||
./Build
|
||||
}
|
||||
EOF
|
||||
$package_func = <<'EOF';
|
||||
package() {
|
||||
./Build install --destdir="$pkgdir"
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
EOF
|
||||
$check_func = <<'EOF';
|
||||
|
@ -284,14 +285,16 @@ EOF
|
|||
$build_func = <<'EOF';
|
||||
build() {
|
||||
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
||||
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
|
||||
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \
|
||||
INSTALLDIRS=vendor \
|
||||
NO_PACKLIST=1 \
|
||||
NO_PERLLOCAL=1
|
||||
make
|
||||
}
|
||||
EOF
|
||||
$package_func = <<'EOF';
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
||||
}
|
||||
EOF
|
||||
$check_func = <<'EOF';
|
||||
|
|
Loading…
Reference in New Issue