Files
packages/extra/gsettings-desktop-schemas/build.sh
T
SFG545 45bcdeddaf Add new packages and build scripts for various libraries
- Introduced build scripts for gsettings-desktop-schemas, hypercorn, json-glib, libassuan, libbsd, libcloudproviders, libdaemon, libmd, libproxy, libsass, libseccomp, libxcomposite, libxdamage, libxtst, lmdb, python-aiofiles, python-blinker, python-flask, python-h11, python-h2, python-hpack, python-hyperframe, python-itsdangerous, python-more-itertools, python-priority, python-pyaml, python-quart, python-tappy, python-werkzeug, python-wsproto, sassc, snowball, talloc, xmltoman, and xorg-xprop.
- Added TOML configuration files for each package specifying build types, dependencies, and source URLs.
- Implemented custom build scripts for packages requiring specific build commands and configurations.
- Included patches for snowball to make libstemmer a shared library.
2026-03-25 17:44:55 -05:00

79 lines
2.1 KiB
Bash

#!/bin/sh
set -eu
makei() {
echo "==> Running: make DESTDIR=\"$pkgdir\" install $*"
make DESTDIR="$pkgdir" install "$@"
}
mesoni() {
echo "==> Running: meson install --destdir \"$pkgdir\" $*"
meson install --destdir "$pkgdir" "$@"
}
cmakei() {
echo "==> Running: cmake --install $*"
DESTDIR="$pkgdir" cmake --install "$@"
}
starmove() {
[ "$#" -ge 1 ] || {
echo "starmove: requires at least one path pattern" >&2
return 1
}
[ "${DEPOT_OUTPUT_NAME:-}" != "" ] || {
echo "starmove: DEPOT_OUTPUT_NAME is not set" >&2
return 1
}
haul "$DEPOT_OUTPUT_NAME" "$@"
}
depot_starbuild_sync_srcdir() {
workdir=${DEPOT_STARBUILD_WORKDIR:?}
compat_root="$workdir/.depot-starbuild"
mkdir -p "$compat_root/packages"
for entry in "$workdir"/* "$workdir"/.[!.]* "$workdir"/..?*; do
[ -e "$entry" ] || [ -L "$entry" ] || continue
base=$(basename "$entry")
[ "$base" = ".depot-starbuild" ] && continue
[ "$base" = "packages" ] && continue
ln -snf "$entry" "$compat_root/$base"
done
mkdir -p "$compat_root/packages/gsettings-desktop-schemas/"
ln -snf "${DEPOT_PRIMARY_DESTDIR:-$DESTDIR}" "$compat_root/packages/gsettings-desktop-schemas/files"
mkdir -p "$compat_root/packages/gsettings-system-schemas/"
ln -snf "$(subdestdir 'gsettings-system-schemas')" "$compat_root/packages/gsettings-system-schemas/files"
srcdir="$compat_root"
export srcdir
}
depot_starbuild_setup_env() {
package_name=$1
package_version='49.1'
pkgdir=${DESTDIR:?}
export package_name package_version pkgdir
LANG=C
LC_ALL=C
export LANG LC_ALL
depot_starbuild_sync_srcdir
}
depot_build() {
depot_starbuild_setup_env 'gsettings-desktop-schemas'
# Add your commands here
meson setup build -Dprefix=/usr --buildtype=release
ninja -C build
ninja -C build test
}
depot_install() {
depot_starbuild_setup_env 'gsettings-desktop-schemas'
mesoni -C build
}
depot_install_gsettings_system_schemas() {
depot_starbuild_setup_env 'gsettings-system-schemas'
starmove usr/share/glib-2.0/schemas/org.gnome.desktop.enums.xml
starmove usr/share/glib-2.0/schemas/org.gnome.system.*.gschema.xml
}