xbps-src: new hook to remove misc files (used for musl currently).
This commit is contained in:
parent
67c854fc64
commit
8d033f5724
1 changed files with 11 additions and 0 deletions
11
common/hooks/post-install/01-remove-misc.sh
Normal file
11
common/hooks/post-install/01-remove-misc.sh
Normal 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
|
||||
}
|
Loading…
Reference in a new issue