mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
gsettings-desktop-schemas: add recipe
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
SYSTEM_DATA_DIR="`finddir B_SYSTEM_DATA_DIRECTORY`"
|
||||
NONPACKAGED_DATA_DIR="`finddir B_SYSTEM_NONPACKAGED_DATA_DIRECTORY`"
|
||||
|
||||
mkdir -p $NONPACKAGED_DATA_DIR/glib-2.0/schemas
|
||||
cp -nrf $SYSTEM_DATA_DIR/glib-2.0/schemas/* $NONPACKAGED_DATA_DIR/glib-2.0/schemas
|
||||
|
||||
glib-compile-schemas $NONPACKAGED_DATA_DIR/glib-2.0/schemas
|
||||
@@ -0,0 +1,74 @@
|
||||
SUMMARY="Collection of GSettings schemas for GNOME desktop"
|
||||
DESCRIPTION="gsettings-desktop-schemas contains a collection of GSettings \
|
||||
schemas for settings shared by various components of a desktop."
|
||||
HOMEPAGE="https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas"
|
||||
COPYRIGHT="Vincent Untz
|
||||
Ryan Lortie
|
||||
"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/archive/$portVersion/gsettings-desktop-schemas-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="69643e9bc1a0b794b0e8eb4dad2ae141bc5860b53689e4310dc4aaea15c2a888"
|
||||
SOURCE_DIR="gsettings-desktop-schemas-$portVersion"
|
||||
ADDITIONAL_FILES="compile-schemas.sh"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
POST_INSTALL_SCRIPTS="
|
||||
$relativePostInstallDir/compile-schemas.sh
|
||||
"
|
||||
|
||||
PROVIDES="
|
||||
gsettings_desktop_schemas$secondaryArchSuffix = $portVersion compat >= 42
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libgio_2.0$secondaryArchSuffix
|
||||
lib:libgirepository_1.0$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libgobject_2.0$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libgio_2.0$secondaryArchSuffix
|
||||
devel:libgirepository_1.0$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libgobject_2.0$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:find
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:gtkdocize
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:meson
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
meson build \
|
||||
--buildtype=release \
|
||||
--prefix="$prefix" \
|
||||
--libdir="$libDir" \
|
||||
--includedir="$includeDir" \
|
||||
--bindir="$binDir" \
|
||||
--libexecdir="$binDir" \
|
||||
--datadir="$dataDir" \
|
||||
--localedir="$dataDir/locale"
|
||||
|
||||
ninja -C build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja install -C build
|
||||
|
||||
rm -rf $dataDir/glib-2.0/schemas/gschemas.compiled
|
||||
|
||||
mkdir -p $postInstallDir
|
||||
cp -f $portDir/additional-files/compile-schemas.sh $postInstallDir
|
||||
chmod -v a+rx $postInstallDir/compile-schemas.sh
|
||||
}
|
||||
Reference in New Issue
Block a user