From f39a1f24d76285ced4587ba855f26c8e430aa0ef Mon Sep 17 00:00:00 2001 From: fewtarius Date: Mon, 31 Oct 2022 06:11:38 -0400 Subject: [PATCH] Tweak rclone again. --- packages/sysutils/rclone/package.mk | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/sysutils/rclone/package.mk b/packages/sysutils/rclone/package.mk index 1c76f5b6b..720d15248 100644 --- a/packages/sysutils/rclone/package.mk +++ b/packages/sysutils/rclone/package.mk @@ -21,17 +21,11 @@ esac PKG_URL="https://downloads.rclone.org/v${PKG_VERSION}/rclone-v${PKG_VERSION}-linux-${RCLONE_ARCH}.zip" PKG_RCLONE="rclone-v${PKG_VERSION}-linux-${RCLONE_ARCH}/rclone" -pre_unpack() { - if [ ! -e "${SOURCES}/rclone/rclone-${PKG_VERSION}-${RCLONE_ARCH}.zip" ] - then - mv ${SOURCES}/rclone/rclone-${PKG_VERSION}.zip ${SOURCES}/rclone/rclone-${PKG_VERSION}-${RCLONE_ARCH}.zip - unzip ${SOURCES}/rclone/rclone-${PKG_VERSION}-${RCLONE_ARCH}.zip -d ${PKG_BUILD}/ - rm -f ${SOURCES}/rclone/rclone-${PKG_VERSION}* - fi -} - unpack() { - : + mkdir -p ${PKG_BUILD} + mv ${SOURCES}/rclone/rclone-${PKG_VERSION}.zip ${SOURCES}/rclone/rclone-${PKG_VERSION}-${RCLONE_ARCH}.zip + unzip ${SOURCES}/rclone/rclone-${PKG_VERSION}-${RCLONE_ARCH}.zip -d ${PKG_BUILD}/ + rm -f ${SOURCES}/rclone/rclone-${PKG_VERSION}* } makeinstall_target() {