summaryrefslogtreecommitdiff
path: root/data/dpkg
diff options
context:
space:
mode:
Diffstat (limited to 'data/dpkg')
-rw-r--r--data/dpkg/make.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/data/dpkg/make.sh b/data/dpkg/make.sh
index d5b539653..d43867069 100644
--- a/data/dpkg/make.sh
+++ b/data/dpkg/make.sh
@@ -1,6 +1,8 @@
cp -a "$(PKG_DEST_ _dpkg)/." "${PKG_DEST}/"
-pkg: rm -rf /usr/share/perl5
-pkg: grep -Erl '#! ?/usr/bin/perl' / | while read -r line; do
+pkg: rm -rf "$("$(PKG_WORK_ perl)"/perl-5*/miniperl_top -e 'use Config; print $Config{vendorlib};')"
+pkg: grep -Erl '#!\s?/usr/bin/perl' / | while read -r line; do
+ echo rm -f "${line}"
rm -f "${line}"
done
pkg: rm -rf /{usr,var}/lib{,exec}/dpkg/methods
+pkg: mkdir -p /var/log/dpkg