mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
libsecret: add recipe
This commit is contained in:
93
app-crypt/libsecret/libsecret-0.20.5.recipe
Normal file
93
app-crypt/libsecret/libsecret-0.20.5.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user