Commit 81215dd3 authored by Ed Reel's avatar Ed Reel Committed by GitHub

Merge pull request #1275 from cstrouse/add-brotli

Add brotli package
parents dfe5d74d 071004c9
require 'package'
class Brotli < Package
description 'Brotli compression format '
homepage 'https://github.com/google/brotli'
version '1.0.1'
source_url 'https://github.com/google/brotli/archive/v1.0.1.tar.gz'
source_sha256 '6870f9c2c63ef58d7da36e5212a3e1358427572f6ac5a8b5a73a815cf3e0c4a6'
binary_url ({
})
binary_sha256 ({
})
depends_on 'cmake' => :build
def self.build
system 'mkdir out'
Dir.chdir 'out' do
system "cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=#{CREW_PREFIX} -DCMAKE_INSTALL_LIBDIR=#{CREW_DEST_LIB_PREFIX}"
system "cmake --build . --config Release --target install"
end
end
def self.install
#system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
Dir.chdir 'out' do
system "cmake -DCMAKE_INSTALL_PREFIX=#{CREW_DEST_PREFIX} -DCMAKE_INSTALL_LIBDIR=#{CREW_DEST_LIB_PREFIX} -P cmake_install.cmake"
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment