From 15ffd53b4b086787230633fb494e7f90bdb5a668 Mon Sep 17 00:00:00 2001 From: Eric <38661012+xebb82@users.noreply.github.com> Date: Mon, 18 Dec 2023 10:42:54 +0100 Subject: [PATCH] Update mv.sh Make sure wax-leap-500x build files can be repackaged properly. --- include/plugins/mv.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/plugins/mv.sh b/include/plugins/mv.sh index ac71c15..ca9888e 100755 --- a/include/plugins/mv.sh +++ b/include/plugins/mv.sh @@ -28,12 +28,17 @@ comment "Remove conflicts field in control file" sed -i "/^Conflicts:/d" ${CONTROL_FILE} # new packages puts binaries directly in /usr/bin -if [ -d ${TMP_DIR}/usr/bin ] && [ -d ${TMP_DIR}/usr/share/licenses/${PACKAGE} ]; then +# 'wax-leap' packages has their license under 'leap' ADJUSTED_PACKAGE="${PACKAGE}" +if [[ "${ADJUSTED_PACKAGE}" == "wax-leap" ]]; then + ADJUSTED_PACKAGE="leap" +fi +if [ -d ${TMP_DIR}/usr/bin ] && [ -d ${TMP_DIR}/usr/share/licenses/${ADJUSTED_PACKAGE} ]; then local NEW_PATH=usr/opt/${PACKAGE}/${MV_VERSION} rename ${TMP_DIR} usr/bin ${NEW_PATH}/bin - rename ${TMP_DIR} usr/share/licenses/${PACKAGE} ${NEW_PATH}/licenses + rename ${TMP_DIR} usr/share/bash-completion ${NEW_PATH}/share/bash-completion + rename ${TMP_DIR} usr/share/licenses/${ADJUSTED_PACKAGE} ${NEW_PATH}/share/licenses comment "Remove usr/share" rm -rf ${TMP_DIR}/usr/share 2> /dev/null