lz4.rb 640 Bytes
Newer Older
Casey Strouse's avatar
Casey Strouse committed
1 2 3
require 'package'

class Lz4 < Package
4 5
  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/'
Casey Strouse's avatar
Casey Strouse committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
  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