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.
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
#!/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
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
[build]
|
||||
type = "custom"
|
||||
|
||||
[dependencies]
|
||||
build = [
|
||||
"adwaita-fonts",
|
||||
"dconf",
|
||||
"git",
|
||||
"glib2",
|
||||
"gobject-introspection",
|
||||
"meson",
|
||||
]
|
||||
runtime = [ "adwaita-fonts", "dconf", "gsettings-system-schemas" ]
|
||||
|
||||
[package]
|
||||
description = "GSettings schemas for GNOME desktop components"
|
||||
homepage = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas"
|
||||
license = "LGPL-2.1-or-later"
|
||||
name = "gsettings-desktop-schemas"
|
||||
version = "50.0"
|
||||
|
||||
[package_dependencies.gsettings-system-schemas]
|
||||
runtime = ["dconf"]
|
||||
|
||||
[[packages]]
|
||||
description = "GSettings schemas for GNOME system components"
|
||||
homepage = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas"
|
||||
license = "LGPL-2.1-or-later"
|
||||
name = "gsettings-system-schemas"
|
||||
version = "50.0"
|
||||
|
||||
[[source]]
|
||||
extract_dir = "gsettings-desktop-schemas"
|
||||
url = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas.git#$version"
|
||||
Reference in New Issue
Block a user