mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
36 lines
963 B
Ruby
36 lines
963 B
Ruby
require 'package'
|
|
|
|
class Librsync < Package
|
|
description 'remote delta-compression library'
|
|
homepage 'https://librsync.github.io/'
|
|
@_ver = '2.3.2'
|
|
version "#{@_ver}-1"
|
|
license 'LGPL-2.1'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/librsync/librsync.git'
|
|
git_hashtag "v#{@_ver}"
|
|
binary_compression 'tpxz'
|
|
|
|
binary_sha256({
|
|
aarch64: '28eec7479ef645f14297d3fc1d1db80bdf8d054ed78888ecd391f8804f2c0805',
|
|
armv7l: '28eec7479ef645f14297d3fc1d1db80bdf8d054ed78888ecd391f8804f2c0805',
|
|
i686: '4cfbee60f557730067df22e16da76b73d6a4170fbde1403fb78373a8f82d2103',
|
|
x86_64: 'fdcbab57b6c0ca16bbcb83a5d33577b6655d49c1ab3b8d86b243957f6ba76c05'
|
|
})
|
|
|
|
depends_on 'cmake' => :build
|
|
depends_on 'bzip2'
|
|
depends_on 'perl'
|
|
depends_on 'popt'
|
|
depends_on 'zlib'
|
|
|
|
def self.build
|
|
system "cmake -G Ninja . #{CREW_CMAKE_OPTIONS}"
|
|
system 'samu'
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} samu install"
|
|
end
|
|
end
|