Commit 7b230e40 authored by saltedcoffii's avatar saltedcoffii Committed by GitHub

[New Package] libeconf (#5241)

parent 74e258dd
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
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