Files
chromebrew/packages/protobuf.rb
2017-10-06 10:33:20 +02:00

32 lines
797 B
Ruby

require 'package'
class Protobuf < Package
description 'Protocol buffers are a language-neutral, platform-neutral extensible mechanism for serializing structured data.'
homepage 'https://developers.google.com/protocol-buffers/'
version '3.3.0-2'
source_url 'https://github.com/google/protobuf/archive/v3.3.0.tar.gz'
source_sha256 '9a36bc1265fa83b8e818714c0d4f08b8cec97a1910de0754a321b11e66eb76de'
binary_url ({
})
binary_sha256 ({
})
depends_on 'automake' => :build
depends_on 'libtool' => :build
def self.build
system './autogen.sh'
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
end
def self.check
system 'make check'
end
end