From c0b4eba1078c0ee3c1c7a8d648fcd280481d6e22 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Wed, 24 Aug 2022 23:48:44 +1000 Subject: [PATCH] libsecret: add recipe --- app-crypt/libsecret/libsecret-0.20.5.recipe | 93 +++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 app-crypt/libsecret/libsecret-0.20.5.recipe diff --git a/app-crypt/libsecret/libsecret-0.20.5.recipe b/app-crypt/libsecret/libsecret-0.20.5.recipe new file mode 100644 index 000000000..d45b97549 --- /dev/null +++ b/app-crypt/libsecret/libsecret-0.20.5.recipe @@ -0,0 +1,93 @@ +SUMMARY="GObject library for accessing the freedesktop.org Secret Service API" +DESCRIPTION="libsecret is a library for storing and retrieving passwords and \ +other secrets. It communicates with the \"Secret Service\" using D-Bus. \ +gnome-keyring and ksecretservice are both implementations of a Secret Service." +HOMEPAGE="https://wiki.gnome.org/Projects/Libsecret" +COPYRIGHT="2012-2019 Red Hat Inc + 2011-2012 Collabora Ltd. + " +LICENSE="GNU LGPL v2.1" +REVISION="1" +SOURCE_URI="https://gitlab.gnome.org/GNOME/libsecret/-/archive/$portVersion/libsecret-$portVersion.tar.gz" +CHECKSUM_SHA256="b33b9542222ea8866f6ff2d31c0ad373877c2277db546ca00cc7fdda9cbab1c3" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libsecret$secondaryArchSuffix = $portVersion compat >= 0 + lib:libsecret_1$secondaryArchSuffix = 0.0.0 compat >= 0 + cmd:secret_tool$secondaryArchSuffix + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libgcrypt$secondaryArchSuffix + lib:libglib_2.0$secondaryArchSuffix + lib:libgobject_2.0$secondaryArchSuffix + lib:libintl$secondaryArchSuffix + lib:libxslt$secondaryArchSuffix + " + +PROVIDES_devel=" + libsecret${secondaryArchSuffix}_devel = $portVersion compat >= 0 + devel:libsecret_1$secondaryArchSuffix = 0.0.0 compat >= 0 + " +REQUIRES_devel=" + libsecret$secondaryArchSuffix == $portVersion base + devel:libgcrypt$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libintl$secondaryArchSuffix + devel:libxslt$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libgcrypt$secondaryArchSuffix + devel:libglib_2.0$secondaryArchSuffix + devel:libgobject_2.0$secondaryArchSuffix + devel:libintl$secondaryArchSuffix + devel:libxslt$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:find + cmd:gcc$secondaryArchSuffix + cmd:gtkdocize + cmd:gpg$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:meson + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + CFLAGS="-D_BSD_SOURCE" \ + LDFLAGS="-lbsd -lgnu -lnetwork" \ + meson build \ + --buildtype=release \ + --prefix="$prefix" \ + --libdir="$libDir" \ + --includedir="$includeDir" \ + --bindir="$binDir" \ + --libexecdir="$binDir" \ + --datadir="$dataDir" \ + --localedir="$dataDir/locale" \ + -Dintrospection=false \ + -Dgtk_doc=false \ + -Dvapi=false \ + -Dmanpage=false + + ninja -C build +} + +INSTALL() +{ + ninja install -C build + + prepareInstalledDevelLibs libsecret-1 + + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +}