summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/perl-static/PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/libre/perl-static/PKGBUILD b/libre/perl-static/PKGBUILD
index a412e9d98..091af2171 100644
--- a/libre/perl-static/PKGBUILD
+++ b/libre/perl-static/PKGBUILD
@@ -39,14 +39,15 @@ build() {
-Darchlib=/usr/lib/perl5/core_perl \
-Dinc_version_list=none \
${arch_opts} \
- -Dlddlflags="-static ${LDFLAGS}" -Dldflags="${LDFLAGS}" -Dso=none
+ -Dlddlflags="-static -nostartfiles ${LDFLAGS}" -Dldflags="${LDFLAGS}" \
+ -Ddynamic_ext=none -Dso=none
make
}
check() {
cd ${srcdir}/${_pkgname}-${pkgver}
- TEST_JOBS=$(echo $MAKEFLAGS | sed 's/.*-j\([0-9][0-9]*\).*/\1/') make test_harness
-# make test
+# TEST_JOBS=$(echo $MAKEFLAGS | sed 's/.*-j\([0-9][0-9]*\).*/\1/') make test_harness
+## make test
}
package() {
@@ -54,6 +55,7 @@ package() {
make DESTDIR="$pkgdir" install
# remove conflicting files
-# rm -vr ${pkgdir}/usr/{include,share}
-# rm -v ${pkgdir}/usr/lib/lib*.so*
+ rm -vr ${pkgdir}/usr/{bin,lib/perl5/{5,s}*,share}
+ rm -vr ${pkgdir}/usr/lib/perl5/core_perl/{B,Compress,Data,Devel,Digest,Encode,File,Filter,Hash,I18N,IO,IPC,List,Math,MIME,PerlIO,Scalar,Sub,Sys,Tie,Time,Unicode,threads}
+ rm -v ${pkgdir}/usr/lib/perl5/core_perl/{.packlist,*.{pl,pm,pod},CORE/*.h}
}