[New Package] libeconf (#5241)

This commit is contained in:
saltedcoffii
2021-02-22 15:08:04 -05:00
committed by GitHub
parent 74e258dd39
commit 7b230e40c0

27
packages/libeconf.rb Normal file
View 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