2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2021-present Xargon (https://github.com/XargonWan)
|
2022-04-03 14:48:52 +00:00
|
|
|
# Copyright (C) 2022-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="rclone"
|
2022-04-03 14:48:52 +00:00
|
|
|
PKG_VERSION="1.58.0"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_ARCH="aarch64"
|
2022-04-03 14:48:52 +00:00
|
|
|
PKG_URL="https://downloads.rclone.org/v${PKG_VERSION}/rclone-v${PKG_VERSION}-linux-arm64.zip"
|
2022-04-03 16:38:59 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain fuse rsync"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_SECTION="tools"
|
|
|
|
PKG_SHORTDESC="rsync for cloud storage"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
|
|
|
pre_unpack() {
|
2022-04-03 14:48:52 +00:00
|
|
|
unzip sources/rclone/rclone-${PKG_VERSION}.zip -d ${PKG_BUILD}/
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-04-03 14:48:52 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin/
|
|
|
|
mkdir -p ${INSTALL}/usr/config/
|
|
|
|
cp ${PKG_DIR}/sources/rclonectl ${INSTALL}/usr/bin/
|
2022-04-03 16:38:59 +00:00
|
|
|
cp ${PKG_DIR}/sources/cloud_backup ${INSTALL}/usr/bin/
|
|
|
|
cp ${PKG_DIR}/sources/cloud_restore ${INSTALL}/usr/bin/
|
2022-04-03 14:48:52 +00:00
|
|
|
cp ${PKG_BUILD}/rclone-v${PKG_VERSION}-linux-arm64/rclone ${INSTALL}/usr/bin/
|
2022-04-03 15:11:58 +00:00
|
|
|
chmod 0755 ${INSTALL}/usr/bin/*
|
2022-04-03 16:38:59 +00:00
|
|
|
cp ${PKG_DIR}/rsync-rules.conf ${INSTALL}/usr/config/
|
|
|
|
cp ${PKG_DIR}/rsync.conf ${INSTALL}/usr/config/
|
2022-04-03 14:48:52 +00:00
|
|
|
chmod 755 ${INSTALL}/usr/bin/rclone
|
|
|
|
}
|