diff --git a/projects/gnome.org/libsecret/package.yml b/projects/gnome.org/libsecret/package.yml new file mode 100644 index 00000000..6f1ec5f8 --- /dev/null +++ b/projects/gnome.org/libsecret/package.yml @@ -0,0 +1,60 @@ +distributable: + url: https://download.gnome.org/sources/libsecret/{{version.marketing}}/libsecret-{{version}}.tar.xz + strip-components: 1 +versions: + url: https://download.gnome.org/sources/libsecret/cache.json + match: /libsecret-\d+\.\d+\.\d+\.tar\.xz/ + strip: + - /^libsecret-/ + - /\.tar\.xz/ +dependencies: + gnome.org/glib: '*' + gnupg.org/libgcrypt: '*' + gnupg.org/libgpg-error: '*' +build: + dependencies: + docbook.org/xsl: '*' + gnu.org/gettext: '*' + gnome.org/gobject-introspection: '*' + mesonbuild.com: '*' + ninja-build.org: '*' + freedesktop.org/pkg-config: '*' + gnome.org/vala: '*' + gnome.org/libxslt: '*' + linux: + llvm.org: '*' + working-directory: build + script: + - meson .. $MESON_ARGS + - run: | + sed -i.bak "s|http://docbook.sourceforge.net/release/xsl/current|{{deps.docbook.org/xsl.prefix}}/libexec/docbook-xsl|g" meson.build + rm meson.build.bak + working-directory: $SRCROOT/docs/man + - ninja --verbose + - ninja install --verbose + - run: ln -s libsecret-1/libsecret libsecret + working-directory: "{{prefix}}/include" + - run: ln -s libsecret-1/libsecret libsecret + working-directory: "{{prefix}}/include" + env: + linux: + CC: clang + CXX: clang++ + LD: clang + CFLAGS: "-Wno-incompatible-function-pointer-types $CFLAGS" + XML_CATALOG_FILES: "{{prefix}}/etc/xml/catalog" + MESON_ARGS: + - --prefix="{{prefix}}" + - --libdir="{{prefix}}/lib" + - --buildtype=release + - --wrap-mode=nofallback + - -Dgtk_doc=false +test: + dependencies: + freedesktop.org/pkg-config: '*' + linux: + gnu.org/gcc: '*' + script: + - cc test.c -o test + - ./test + - pkg-config --modversion libsecret-1 | grep {{version}} diff --git a/projects/gnome.org/libsecret/test.c b/projects/gnome.org/libsecret/test.c new file mode 100644 index 00000000..ffb684e4 --- /dev/null +++ b/projects/gnome.org/libsecret/test.c @@ -0,0 +1,24 @@ +#include + +const SecretSchema * example_get_schema (void) G_GNUC_CONST; + +const SecretSchema * +example_get_schema (void) +{ + static const SecretSchema the_schema = { + "org.example.Password", SECRET_SCHEMA_NONE, + { + { "number", SECRET_SCHEMA_ATTRIBUTE_INTEGER }, + { "string", SECRET_SCHEMA_ATTRIBUTE_STRING }, + { "even", SECRET_SCHEMA_ATTRIBUTE_BOOLEAN }, + { "NULL", 0 }, + } + }; + return &the_schema; +} + +int main() +{ + example_get_schema(); + return 0; +} \ No newline at end of file