mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
32 lines
1.3 KiB
Ruby
32 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Rclone < Package
|
|
description 'Rclone is a command-line program to manage files on cloud storage.'
|
|
homepage 'https://rclone.org/'
|
|
version '1.71.2'
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url({
|
|
aarch64: "https://github.com/rclone/rclone/releases/download/v#{version}/rclone-v#{version}-linux-arm-v7.zip",
|
|
armv7l: "https://github.com/rclone/rclone/releases/download/v#{version}/rclone-v#{version}-linux-arm-v7.zip",
|
|
i686: "https://github.com/rclone/rclone/releases/download/v#{version}/rclone-v#{version}-linux-386.zip",
|
|
x86_64: "https://github.com/rclone/rclone/releases/download/v#{version}/rclone-v#{version}-linux-amd64.zip"
|
|
})
|
|
source_sha256({
|
|
aarch64: 'bd89eb49aff89be4f9d73455885283a825d356e795424e39edb39134d397325b',
|
|
armv7l: 'bd89eb49aff89be4f9d73455885283a825d356e795424e39edb39134d397325b',
|
|
i686: '809df9d197f0fa070f13aa5a94a2155f68e5f2dea18db9aa3967922ed04efc31',
|
|
x86_64: 'ab9fa5877cee91c64fdfd61a27028a458cf618b39259e5c371dc2ec34a12e415'
|
|
})
|
|
|
|
no_compile_needed
|
|
no_shrink
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
|
|
FileUtils.mkdir_p "#{CREW_DEST_MAN_PREFIX}/man1"
|
|
FileUtils.install 'rclone', "#{CREW_DEST_PREFIX}/bin/rclone", mode: 0o755
|
|
FileUtils.install 'rclone.1', "#{CREW_DEST_MAN_PREFIX}/man1/rclone.1", mode: 0o644
|
|
end
|
|
end
|