summaryrefslogtreecommitdiff
path: root/data/dpkg-perl/make.sh
blob: 6aaa19e37183115c913ba53f85509f21d8a6893f (plain)
1
2
3
4
5
6
7
8
9
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