Tweak rclone again.

This commit is contained in:
fewtarius 2022-10-31 06:11:38 -04:00
parent 46ab61e22e
commit f39a1f24d7
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -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() {