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

class Xxhash < Package
4 5
  description 'xxHash is an extremely fast non-cryptographic hash algorithm, working at speeds close to RAM limits.'
  homepage 'http://cyan4973.github.io/xxHash/'
Casey Strouse's avatar
Casey Strouse committed
6 7
  version '0.6.2'
  source_url 'https://github.com/Cyan4973/xxHash/archive/v0.6.2.tar.gz'
8
  source_sha256 'e4da793acbe411e7572124f958fa53b280e5f1821a8bf78d79ace972950b8f82'
Casey Strouse's avatar
Casey Strouse committed
9 10 11 12 13 14 15 16 17 18 19

  def self.build
    system "make"
  end

  def self.install
    FileUtils.mkdir_p ["#{CREW_DEST_DIR}/usr/local/bin", "#{CREW_DEST_DIR}/usr/local/man/man1"]
    FileUtils.cp "xxhsum", "#{CREW_DEST_DIR}/usr/local/bin/"
    FileUtils.cp "xxhsum.1", "#{CREW_DEST_DIR}/usr/local/man/man1/"
  end
end