diff options
author | Sam Bingner <sam@bingner.com> | 2019-03-29 16:15:07 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-03-29 16:15:07 -1000 |
commit | f420962cfa66e1cba88f7e0b67de5f081b425ef5 (patch) | |
tree | e5fb9fca204bd553c0f8a15e9c2d42a2e02e346b /data/dpkg-perl | |
parent | f0d949436389a5851c42defba484c4454e351bf2 (diff) |
Update dpkg to have the proper path for perl
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 |