Files
chromebrew/packages/httrack.rb
2022-03-29 13:46:35 -05:00

38 lines
1.7 KiB
Ruby

require 'package'
class Httrack < Package
description 'HTTrack is a free (GPL, libre/free software) and easy-to-use offline browser utility. It allows you to download a World Wide Web site from the Internet to a local directory, building recursively all directories, getting HTML, images, and other files from the server to your computer.'
homepage 'http://www.httrack.com/'
version '3.49.2-2'
license 'GPL-3'
compatibility 'all'
source_url 'https://mirror.httrack.com/httrack-3.49.2.tar.gz'
source_sha256 '3477a0e5568e241c63c9899accbfcdb6aadef2812fcce0173688567b4c7d4025'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/httrack/3.49.2-2_armv7l/httrack-3.49.2-2-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/httrack/3.49.2-2_armv7l/httrack-3.49.2-2-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/httrack/3.49.2-2_i686/httrack-3.49.2-2-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/httrack/3.49.2-2_x86_64/httrack-3.49.2-2-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: '65be9f112bd18ec49d3d0425e9b49d9c0e4a1242419ea1b4bb28ac68ec29cc8b',
armv7l: '65be9f112bd18ec49d3d0425e9b49d9c0e4a1242419ea1b4bb28ac68ec29cc8b',
i686: '708949b7a3910a98d66c41db1c872ce1451e9afe43af38b06463a9218905cf17',
x86_64: 'e2d6bd8daf3d21577b4f908a3e1c585791365d3befe7b0df450898f8fc8dba60'
})
def self.patch
system 'filefix'
end
def self.build
system "./configure #{CREW_OPTIONS}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end