mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* gcc -> libs and dev * update deps * adjust deps in install.sh * update gcc dep in core * cleanup * add gcc_build * update gcc deps in llvm packages * adjust conflicts command to exclude _build package filelists * remove conflicts_ok from compiler packages
48 lines
1.9 KiB
Ruby
48 lines
1.9 KiB
Ruby
# Adapted from Arch Linux protobuf PKGBUILD at:
|
|
# https://github.com/archlinux/svntogit-packages/raw/packages/protobuf/trunk/PKGBUILD
|
|
|
|
require 'package'
|
|
|
|
class Protobuf < Package
|
|
description 'Protocol Buffers - Googles data interchange format'
|
|
homepage 'https://developers.google.com/protocol-buffers/'
|
|
@_ver = '21.12'
|
|
version @_ver
|
|
license 'BSD'
|
|
compatibility 'all'
|
|
source_url "https://github.com/protocolbuffers/protobuf/archive/v#{@_ver}/protobuf-#{@_ver}.tar.gz"
|
|
source_sha256 '22fdaf641b31655d4b2297f9981fa5203b2866f8332d3c6333f6b0107bb320de'
|
|
|
|
binary_url({
|
|
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/protobuf/21.12_armv7l/protobuf-21.12-chromeos-armv7l.tar.zst',
|
|
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/protobuf/21.12_armv7l/protobuf-21.12-chromeos-armv7l.tar.zst',
|
|
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/protobuf/21.12_i686/protobuf-21.12-chromeos-i686.tar.zst',
|
|
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/protobuf/21.12_x86_64/protobuf-21.12-chromeos-x86_64.tar.zst'
|
|
})
|
|
binary_sha256({
|
|
aarch64: '525fa6ba3fe024ceadab14380e4bd9e2b4a7e4c2e486285cf0cc2483a541b581',
|
|
armv7l: '525fa6ba3fe024ceadab14380e4bd9e2b4a7e4c2e486285cf0cc2483a541b581',
|
|
i686: '4dedac0a666c3050f7e4944bab9aa2c676a727fd448bbf6ae37cc1494ac13e5c',
|
|
x86_64: '314c9575d0a48a7a4ccada06404594452ab99183409aaec9e53abd8d1ede0dfe'
|
|
})
|
|
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'zlibpkg' # R
|
|
|
|
def self.build
|
|
FileUtils.mkdir('builddir')
|
|
Dir.chdir('builddir') do
|
|
system "cmake #{CREW_CMAKE_OPTIONS} \
|
|
-Dprotobuf_BUILD_SHARED_LIBS=ON \
|
|
-Dprotobuf_BUILD_TESTS=OFF \
|
|
../ -G Ninja"
|
|
end
|
|
system 'samu -C builddir'
|
|
end
|
|
|
|
def self.install
|
|
system "DESTDIR=#{CREW_DEST_DIR} samu -C builddir install"
|
|
end
|
|
end
|