Files
haikuports/gnome-base/dconf-editor/dconf_editor-43.0.recipe
Humdinger 72d011e5a5 Dconf Editor: Improved description
I orginally only wanted to correct the wrongly escaped single quote
of "It's". But one thing lead to another...
2022-12-01 08:41:36 +01:00

111 lines
2.8 KiB
Bash

SUMMARY="A GSettings editor for GNOME"
DESCRIPTION="Dconf Editor is a viewer and editor of internal settings of some applications. \
It allows editing options not exposed in their interface.
Dconf Editor is a powerful tool, that can break applications if misused!"
HOMEPAGE="https://wiki.gnome.org/Apps/DconfEditor"
COPYRIGHT="2022 The GNOME Project"
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="https://gitlab.gnome.org/GNOME/dconf-editor/-/archive/$portVersion/dconf-editor-$portVersion.tar.gz"
CHECKSUM_SHA256="9c74aaaa37beb55c94df160ff26b18004c9f601e6af4c5cc33fb421b74245218"
SOURCE_DIR="dconf-editor-$portVersion"
PATCHES="dconf_editor-$portVersion.patchset"
ADDITIONAL_FILES="
dconf_editor.rdef.in
compile-schemas.sh
"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
POST_INSTALL_SCRIPTS="
$relativePostInstallDir/compile-schemas.sh
"
PROVIDES="
dconf_editor$secondaryArchSuffix = $portVersion
app:DconfEditor = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libdconf$secondaryArchSuffix
lib:libgtk_3$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libgio_2.0$secondaryArchSuffix
lib:libgmodule_2.0$secondaryArchSuffix
lib:libgobject_2.0$secondaryArchSuffix
lib:libgthread_2.0$secondaryArchSuffix
lib:libhandy_1$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libdconf$secondaryArchSuffix
devel:libgtk_3$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libhandy_1$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:itstool
cmd:meson
cmd:ninja
cmd:pkg_config$secondaryArchSuffix
cmd:xargs
cmd:valac
"
PATCH()
{
cd $sourceDir
find editor -type f -regex '.*\(vala\|ui\|css\)' -print0 | xargs -0 sed -i 's/-symbolic//g'
}
BUILD()
{
meson Build \
--buildtype=release \
--prefix="$prefix" \
--bindir="$appsDir" \
--datadir="$dataDir" \
--localedir="$dataDir/locale"
ninja -C Build
}
INSTALL()
{
ninja install -C Build
mv $appsDir/dconf-editor "$appsDir/Dconf Editor"
rm -rf $prefix/share
rm -rf $dataDir/{applications,dbus-1,bash-completion}
mkdir -p $postInstallDir
cp -f $portDir/additional-files/compile-schemas.sh $postInstallDir
chmod -v a+rx $postInstallDir/compile-schemas.sh
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local APP_NAME="Dconf Editor"
local LONG_INFO="$SUMMARY"
local APP_SIGNATURE="application/x-vnd.gnome-dconf-editor"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
-e "s|@APP_NAME@|$APP_NAME|" \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
$portDir/additional-files/dconf_editor.rdef.in > dconf_editor.rdef
addResourcesToBinaries dconf_editor.rdef "$appsDir/Dconf Editor"
addAppDeskbarSymlink "$appsDir/Dconf Editor"
}