Skip to content

Commit

Permalink
striplafiles feature to simply drop all *.la files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Karbowski committed May 3, 2011
1 parent c2d4e1e commit 4e0a231
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bashrc
Expand Up @@ -70,13 +70,31 @@ localpatch() {
fi
}

striplafiles() {
local i installlacrap donotstriplafilesfor
donotstriplafilesfor=( imagemagick libtool )
for i in "${donotstriplafilesfor[@]}"; do
if [ "${PN}" = "${i}" ]; then
installlacrap='true'
fi
done
if ! [ "${installlacrap}" = 'true' ]; then
local line
find "$D" -type f -name '*.la' | while read line; do
einfo "Removing \${D}/${line/${D}} [striplafiles] ..."
rm "${line}"; eend $?
done
fi
}

post_src_unpack() {
if hasq localpatch ${foobashrc_modules}; then
localpatch
fi
}

post_pkg_preinst() {
if hasq striplafiles ${foobashrc_modules}; then striplafiles; fi
if hasq pathparanoid ${foobashrc_modules}; then /root/bin/pathparanoid --prefix "$D" --check --adjust; fi
}

Expand Down

0 comments on commit 4e0a231

Please sign in to comment.