From 8d033f572478acec2143060ff278568eafb8333f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 10 Nov 2014 12:16:31 +0100 Subject: [PATCH] xbps-src: new hook to remove misc files (used for musl currently). --- common/hooks/post-install/01-remove-misc.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 common/hooks/post-install/01-remove-misc.sh diff --git a/common/hooks/post-install/01-remove-misc.sh b/common/hooks/post-install/01-remove-misc.sh new file mode 100644 index 00000000000..06e8c194731 --- /dev/null +++ b/common/hooks/post-install/01-remove-misc.sh @@ -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 +}