mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
22 lines
640 B
Ruby
22 lines
640 B
Ruby
require 'package'
|
|
|
|
class Lz4 < Package
|
|
description 'LZ4 is lossless compression algorithm, providing compression speed at 400 MB/s per core (0.16 Bytes/cycle).'
|
|
homepage 'http://lz4.github.io/lz4/'
|
|
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
|