mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
94 lines
2.3 KiB
Bash
94 lines
2.3 KiB
Bash
SUMMARY="Flatpak portal library"
|
|
DESCRIPTION="libportal provides GIO-style async APIs for most Flatpak portals."
|
|
HOMEPAGE="https://people.freedesktop.org/~hughsient/appstream-glib/"
|
|
COPYRIGHT="Matthias Clasen
|
|
Patrick Griffis"
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/flatpak/libportal/releases/download/$portVersion/libportal-$portVersion.tar.xz"
|
|
SOURCE_DIR="libportal-$portVersion"
|
|
CHECKSUM_SHA256="88a12c3ba71bc31acff7238c280de697d609cebc50830c3766776ec35abc6566"
|
|
PATCHES="libportal-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libportal$secondaryArchSuffix = $portVersion compat >= 0
|
|
lib:libportal$secondaryArchSuffix = 1.0 compat >= 1
|
|
lib:libportal_gtk3$secondaryArchSuffix = 1.0 compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgtk_3$secondaryArchSuffix
|
|
lib:libgirepository_1.0$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libharfbuzz_gobject$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libportal${secondaryArchSuffix}_devel = $portVersion compat >= 0
|
|
devel:libportal$secondaryArchSuffix = 1.0 compat >= 1
|
|
devel:libportal_gtk3$secondaryArchSuffix = 1.0 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libportal$secondaryArchSuffix == $portVersion base
|
|
devel:libgtk_3$secondaryArchSuffix
|
|
devel:libgirepository_1.0$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
harfbuzz${secondaryArchSuffix}_glib
|
|
devel:libgtk_3$secondaryArchSuffix
|
|
devel:libgirepository_1.0$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gperf
|
|
cmd:make
|
|
cmd:meson
|
|
cmd:ninja
|
|
cmd:perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:valac
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
meson \
|
|
--buildtype=release \
|
|
--prefix=$prefix \
|
|
--libdir=$libDir \
|
|
--libexecdir=$binDir \
|
|
--datadir=$dataDir \
|
|
--localedir=$dataDir/locale \
|
|
--includedir=$includeDir \
|
|
--sysconfdir=$settingsDir \
|
|
-Dbackends=gtk3 \
|
|
-Dintrospection=true \
|
|
-Dportal-tests=false \
|
|
-Dvapi=true \
|
|
-Ddocs=false \
|
|
-Dtests=false \
|
|
_build
|
|
|
|
ninja -v -C _build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja install -C _build
|
|
|
|
prepareInstalledDevelLibs libportal libportal-gtk3
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|