mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
gnome.org/libsecret (#3955)
* new file: projects/gnome.org/libsecret/package.yml new file: projects/gnome.org/libsecret/test.c * gtk * +google.com/googletest * env
This commit is contained in:
parent
069703a0bd
commit
2cc0602c12
2 changed files with 84 additions and 0 deletions
60
projects/gnome.org/libsecret/package.yml
Normal file
60
projects/gnome.org/libsecret/package.yml
Normal file
|
@ -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}}
|
24
projects/gnome.org/libsecret/test.c
Normal file
24
projects/gnome.org/libsecret/test.c
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include <libsecret/secret.h>
|
||||
|
||||
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;
|
||||
}
|
Loading…
Reference in a new issue