1SUMMARY="Collection of GSettings schemas for GNOME desktop" 2DESCRIPTION="gsettings-desktop-schemas contains a collection of GSettings \ 3schemas for settings shared by various components of a desktop." 4HOMEPAGE="https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas" 5COPYRIGHT="Vincent Untz 6 Ryan Lortie 7 " 8LICENSE="GNU LGPL v2.1" 9REVISION="2" 10SOURCE_URI="https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/archive/$portVersion/gsettings-desktop-schemas-$portVersion.tar.gz" 11CHECKSUM_SHA256="31031e79df72f5880030d975ac7f50644f9937a420b9400fb08de89ff1548a2c" 12SOURCE_DIR="gsettings-desktop-schemas-$portVersion" 13ADDITIONAL_FILES=" 14 00_org.gnome.desktop.interface.gschema.override 15 compile-schemas.sh 16 " 17 18ARCHITECTURES="all !x86_gcc2" 19SECONDARY_ARCHITECTURES="x86" 20 21POST_INSTALL_SCRIPTS=" 22 $relativePostInstallDir/compile-schemas.sh 23 " 24 25PROVIDES=" 26 gsettings_desktop_schemas$secondaryArchSuffix = $portVersion compat >= 43 27 " 28REQUIRES=" 29 haiku$secondaryArchSuffix 30 lib:libgio_2.0$secondaryArchSuffix 31 lib:libgirepository_1.0$secondaryArchSuffix 32 lib:libglib_2.0$secondaryArchSuffix 33 lib:libgobject_2.0$secondaryArchSuffix 34 " 35 36BUILD_REQUIRES=" 37 haiku${secondaryArchSuffix}_devel 38 devel:libgio_2.0$secondaryArchSuffix 39 devel:libgirepository_1.0$secondaryArchSuffix 40 devel:libglib_2.0$secondaryArchSuffix 41 devel:libgobject_2.0$secondaryArchSuffix 42 " 43BUILD_PREREQUIRES=" 44 cmd:cmake 45 cmd:find 46 cmd:gcc$secondaryArchSuffix 47 cmd:gtkdocize 48 cmd:ld$secondaryArchSuffix 49 cmd:meson 50 cmd:pkg_config$secondaryArchSuffix 51 " 52 53BUILD() 54{ 55 meson build \ 56 --buildtype=release \ 57 --prefix="$prefix" \ 58 --libdir="$libDir" \ 59 --includedir="$includeDir" \ 60 --bindir="$binDir" \ 61 --libexecdir="$binDir" \ 62 --datadir="$dataDir" \ 63 --localedir="$dataDir/locale" 64 65 ninja -C build 66} 67 68INSTALL() 69{ 70 ninja install -C build 71 72 rm -rf $dataDir/glib-2.0/schemas/gschemas.compiled 73 cp -f $portDir/additional-files/*.override $dataDir/glib-2.0/schemas 74 75 mkdir -p $postInstallDir 76 cp -f $portDir/additional-files/compile-schemas.sh $postInstallDir 77 chmod -v a+rx $postInstallDir/compile-schemas.sh 78} 79