summaryrefslogtreecommitdiff
path: root/data/dpkg-perl/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'data/dpkg-perl/make.sh')
-rw-r--r--data/dpkg-perl/make.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/dpkg-perl/make.sh b/data/dpkg-perl/make.sh
new file mode 100644
index 000000000..6aaa19e37
--- /dev/null
+++ b/data/dpkg-perl/make.sh
@@ -0,0 +1,10 @@
+pkg: mkdir -p /usr/share
+cp -a "$(PKG_DEST_ _dpkg)/usr/share/perl5" "${PKG_DEST}/usr/share"
+pushd "$(PKG_DEST_ _dpkg)/"
+grep -Erl '#! ?/usr/bin/perl' . | while read -r line; do
+ dir=$(dirname $line)
+ pkg: mkdir -p /${dir}
+ pkg: cp -a $line /${dir}
+done
+popd
+pkg: rm -rf /{usr,var}/lib{,exec}/dpkg/methods