mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Add lz4 (1.7.5) package
LZ4 is lossless compression algorithm, providing compression speed at 400 MB/s per core, scalable with multi-cores CPU. It features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on multi-core systems. Tested as working properly on Samsung XE50013-K01US.
This commit is contained in:
19
packages/lz4.rb
Normal file
19
packages/lz4.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
require 'package'
|
||||
|
||||
class Lz4 < Package
|
||||
version '1.7.5'
|
||||
source_url 'https://github.com/lz4/lz4/archive/v1.7.5.tar.gz'
|
||||
source_sha1 'a710a7d45beb0951806d2b98f0c1739107e97c14'
|
||||
|
||||
def self.build
|
||||
if `uname -m`.strip == "x86_64"
|
||||
system "make", "PREFIX=/usr/local", "libdir=/usr/local/lib64"
|
||||
else
|
||||
system "make", "PREFIX=/usr/local", "libdir=/usr/local/lib"
|
||||
end
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user