Skip to content

Commit

Permalink
user/libeconf: new package
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Sep 26, 2024
1 parent db29b70 commit 7e3512e
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions user/libeconf-devel
1 change: 1 addition & 0 deletions user/libeconf-progs
12 changes: 12 additions & 0 deletions user/libeconf/patches/meson.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/meson.build 2024-09-20 17:11:49.271033354 -0300
+++ a/meson.build 2024-09-20 17:11:58.804736776 -0300
@@ -15,8 +15,7 @@
inc = include_directories('include')

add_project_arguments(['-D_GNU_SOURCE=1',
- '-DXTSTRINGDEFINES',
- '-D_FORTIFY_SOURCE=2'], language : 'c')
+ '-DXTSTRINGDEFINES'], language : 'c')

possible_cc_flags = [
'-Dwerror=true',
10 changes: 10 additions & 0 deletions user/libeconf/patches/tests.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Fails on Musl
--- a/tests/meson.build 2024-09-18 07:53:14.000000000 -0300
+++ b/tests/meson.build 2024-09-20 07:10:42.449539955 -0300
@@ -203,6 +203,3 @@
test('tst-shells2', tst_shells2_exe)


-test('tst_econftool1', find_program('tst-econftool1.sh'))
-test('tst_econftool_show1', find_program('tst-econftool_show1.sh'))
-test('tst_econftool_cat', find_program('tst-econftool_cat.sh'))
27 changes: 27 additions & 0 deletions user/libeconf/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
pkgname = "libeconf"
pkgver = "0.7.4"
pkgrel = 0
build_style = "meson"
configure_args = ["-Ddefault_library=shared"]
hostmakedepends = ["meson", "pkgconf", "doxygen"]
pkgdesc = "Config file parser"
maintainer = "tulilirockz <[email protected]>"
license = "MIT"
url = "https://github.com/openSUSE/libeconf"
source = f"{url}/archive/refs/tags/v{pkgver}.tar.gz"
sha256 = "4174ca94e958cbb6c8bb4ea9e6909877d6178e00b6a65349eade64a462534da0"
options = ["linkundefver"]


def post_install(self):
self.install_license("LICENSE")


@subpackage("libeconf-devel")
def _(self):
return self.default_devel()


@subpackage("libeconf-progs")
def _(self):
return self.default_progs()

0 comments on commit 7e3512e

Please sign in to comment.