ports: Add glib port

This commit is contained in:
2025-08-21 03:08:08 +03:00
parent 24b69a6dea
commit 214e7a5672
3 changed files with 171 additions and 0 deletions

26
ports/glib/build.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash ../install.sh
NAME='glib'
VERSION='2.85.2'
DOWNLOAD_URL="https://download.gnome.org/sources/glib/${VERSION%.*}/glib-$VERSION.tar.xz#833b97c0f0a1bfdba1d0fbfc36cd368b855c5afd9f02b8ffb24129114ad051b2"
DEPENDENCIES=('pcre2' 'libffi' 'zlib' 'libiconv')
CONFIGURE_OPTIONS=(
'-Dprefix=/usr'
'-Dxattr=false'
)
configure() {
meson setup \
--reconfigure \
--cross-file "$MESON_CROSS_FILE" \
"${CONFIGURE_OPTIONS[@]}" \
build || exit 1
}
build() {
meson compile -C build || exit 1
}
install() {
meson install --destdir="$BANAN_SYSROOT" -C build || exit 1
}