2012-06-17 19:24:47 +02:00
|
|
|
# Description: Low-level data structure handling, portability wrappers, and interfaces for runtime functionality
|
2021-02-03 17:44:26 +01:00
|
|
|
# URL: https://www.gtk.org/
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2024-03-08 12:57:43 +01:00
|
|
|
# Depends on: elfutils libpcre2 meson ninja python3-packaging util-linux
|
2012-06-17 19:24:47 +02:00
|
|
|
|
|
|
|
name=glib
|
2024-03-08 12:57:43 +01:00
|
|
|
version=2.80.0
|
2022-10-25 18:37:02 +02:00
|
|
|
release=1
|
2020-05-23 17:53:46 +10:00
|
|
|
source=(https://download.gnome.org/sources/$name/${version:0:4}/$name-$version.tar.xz \
|
2015-11-01 11:45:25 +01:00
|
|
|
gschemas.compiled)
|
2012-06-17 19:24:47 +02:00
|
|
|
|
2021-02-03 17:44:26 +01:00
|
|
|
build() {
|
2022-02-18 14:01:51 +01:00
|
|
|
sed 's|/var/run/dbus|/run/dbus|' -i $name-$version/gio/gdbusaddress.c
|
|
|
|
|
2020-12-19 13:40:00 +01:00
|
|
|
meson setup build $name-$version \
|
|
|
|
--prefix=/usr \
|
2022-10-07 13:01:00 +02:00
|
|
|
--libexecdir=/usr/lib/glib \
|
2021-02-03 17:44:26 +01:00
|
|
|
--buildtype=plain \
|
2021-09-18 14:31:43 +02:00
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true \
|
2024-03-08 12:57:43 +01:00
|
|
|
-D introspection=disabled \
|
2020-12-19 13:40:00 +01:00
|
|
|
-D nls=disabled \
|
2021-09-18 14:31:43 +02:00
|
|
|
-D selinux=disabled \
|
2024-03-08 12:57:43 +01:00
|
|
|
-D documentation=false \
|
2021-12-03 12:07:49 +01:00
|
|
|
-D tests=false
|
2020-12-19 13:40:00 +01:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2013-04-06 11:24:19 +02:00
|
|
|
|
2021-09-18 14:31:43 +02:00
|
|
|
export PYTHONHASHSEED=0
|
|
|
|
/usr/bin/python3 -m compileall -d /usr/share/glib-2.0/codegen $PKG/usr/share/glib-2.0/codegen
|
|
|
|
/usr/bin/python3 -O -m compileall -d /usr/share/glib-2.0/codegen $PKG/usr/share/glib-2.0/codegen
|
|
|
|
|
2019-03-19 06:01:14 +01:00
|
|
|
install -m 0644 $SRC/gschemas.compiled $PKG/usr/share/glib-2.0/schemas/gschemas.compiled
|
2021-09-18 14:31:43 +02:00
|
|
|
prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
|
2012-06-17 19:24:47 +02:00
|
|
|
}
|