xbps-src: new hook to remove misc files (used for musl currently).

This commit is contained in:
Juan RP 2014-11-10 12:16:31 +01:00
parent 67c854fc64
commit 8d033f5724

View file

@ -0,0 +1,11 @@
# hook to remove misc files.
hook() {
case "$XBPS_TARGET_MACHINE" in
*-musl) ;;
*) return 0;;
esac
# Remove charset.alias on musl
if [ -f $PKGDESTDIR/usr/lib/charset.alias ]; then
rm -f $PKGDESTDIR/usr/lib/charset.alias
fi
}