diff options
Diffstat (limited to 'data/dpkg-perl')
-rw-r--r-- | data/dpkg-perl/make.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/data/dpkg-perl/make.sh b/data/dpkg-perl/make.sh index 6aaa19e37..85b166be0 100644 --- a/data/dpkg-perl/make.sh +++ b/data/dpkg-perl/make.sh @@ -1,10 +1,11 @@ -pkg: mkdir -p /usr/share -cp -a "$(PKG_DEST_ _dpkg)/usr/share/perl5" "${PKG_DEST}/usr/share" +LIBDIR="$("$(PKG_WORK_ perl)"/perl-5*/miniperl_top -e 'use Config; print $Config{vendorlib};')" +pkg: mkdir -p "/${LIBDIR}" +cp -a "$(PKG_DEST_ _dpkg)/${LIBDIR}" "${PKG_DEST}/${LIBDIR}" pushd "$(PKG_DEST_ _dpkg)/" -grep -Erl '#! ?/usr/bin/perl' . | while read -r line; do +grep -Erl '#!\s?/usr/bin/perl' . | while read -r line; do dir=$(dirname $line) - pkg: mkdir -p /${dir} - pkg: cp -a $line /${dir} + pkg: mkdir -p "/${dir}" + pkg: cp -a "$line" "/${dir}" done popd pkg: rm -rf /{usr,var}/lib{,exec}/dpkg/methods |