Commit ba07b533 authored by satmandu's avatar satmandu Committed by GitHub

Update libeconf.rb (#5254)

parent c60564e5
...@@ -8,13 +8,28 @@ class Libeconf < Package ...@@ -8,13 +8,28 @@ class Libeconf < Package
source_url 'https://github.com/openSUSE/libeconf/archive/v0.3.8.tar.gz' source_url 'https://github.com/openSUSE/libeconf/archive/v0.3.8.tar.gz'
source_sha256 'e0c265f85eef2aca400d17b88f74891ce40ed88d959ebc29f529d26121f7e8e3' source_sha256 'e0c265f85eef2aca400d17b88f74891ce40ed88d959ebc29f529d26121f7e8e3'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libeconf-0.3.8-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libeconf-0.3.8-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libeconf-0.3.8-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libeconf-0.3.8-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '48ea1c16670d3f19656f6abbec7c3b218a67946512dc53b3707bacba4b36f6aa',
armv7l: '48ea1c16670d3f19656f6abbec7c3b218a67946512dc53b3707bacba4b36f6aa',
i686: 'c9f3090f534cbc02e7c44f02289d5c2140567cb071b309efda03ad22ebcdb7a8',
x86_64: '8172738483bdac025f09f95dcb3508d75c39c392900e6d7b73474d3513d15ca1'
})
def self.build def self.build
FileUtils.mkdir 'builddir' FileUtils.mkdir 'builddir'
Dir.chdir 'builddir' do Dir.chdir 'builddir' do
system "cmake -G 'Ninja' \ system "env CFLAGS='-flto=auto' CXXFLAGS='-flto=auto' \
#{CREW_CMAKE_OPTIONS} .." LDFLAGS='-flto=auto' \
system "ninja" cmake -G 'Ninja' \
#{CREW_CMAKE_OPTIONS} .."
end end
system 'ninja -C builddir'
end end
def self.install def self.install
...@@ -22,6 +37,6 @@ class Libeconf < Package ...@@ -22,6 +37,6 @@ class Libeconf < Package
end end
def self.check def self.check
system "ninja -C builddir check" system 'ninja -C builddir check'
end 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