Files
chromebrew/packages/xxhash.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* Add binary_compression value to each package

* Remove binary_url values and arrays

* Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
2024-01-25 11:03:31 -05:00

32 lines
1022 B
Ruby

require 'package'
class Xxhash < Package
description 'xxHash is an extremely fast non-cryptographic hash algorithm, working at speeds close to RAM limits.'
homepage 'https://cyan4973.github.io/xxHash/'
version '0.8.1'
license 'BSD-2 and GPL-2+'
compatibility 'all'
source_url 'https://github.com/Cyan4973/xxHash.git'
git_hashtag "v#{version}"
binary_compression 'tar.xz'
binary_sha256({
aarch64: '7ad8cdd3611bf8336070ec55d92c30cae584656c3720ca2368101826ca089c4a',
armv7l: '7ad8cdd3611bf8336070ec55d92c30cae584656c3720ca2368101826ca089c4a',
i686: '5d70bb5ac38e15afd006ac0c6957ef81cfae0a05d27428ffbc3501b7b899cd10',
x86_64: 'c1f0005397d8433a33ab6195f82d7f17e6271530599ad52538c6550360b97afc'
})
depends_on 'glibc' # R
no_patchelf
no_zstd
def self.build
system 'make', "PREFIX=#{CREW_PREFIX}", "LIBDIR=#{CREW_LIB_PREFIX}"
end
def self.install
system 'make', "PREFIX=#{CREW_PREFIX}", "LIBDIR=#{CREW_LIB_PREFIX}", "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end