mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
[New Package] libeconf (#5241)
This commit is contained in:
27
packages/libeconf.rb
Normal file
27
packages/libeconf.rb
Normal file
@@ -0,0 +1,27 @@
|
||||
require 'package'
|
||||
|
||||
class Libeconf < Package
|
||||
description 'Enhanced config file parser, which merges config files placed in several locations into one.'
|
||||
homepage 'https://github.com/openSUSE/libeconf'
|
||||
version '0.3.8'
|
||||
compatibility 'all'
|
||||
source_url 'https://github.com/openSUSE/libeconf/archive/v0.3.8.tar.gz'
|
||||
source_sha256 'e0c265f85eef2aca400d17b88f74891ce40ed88d959ebc29f529d26121f7e8e3'
|
||||
|
||||
def self.build
|
||||
FileUtils.mkdir 'builddir'
|
||||
Dir.chdir 'builddir' do
|
||||
system "cmake -G 'Ninja' \
|
||||
#{CREW_CMAKE_OPTIONS} .."
|
||||
system "ninja"
|
||||
end
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
|
||||
end
|
||||
|
||||
def self.check
|
||||
system "ninja -C builddir check"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user