blob: 78eee006d675d487041809f2c071b4d86beeb033 (
plain)
1 # Description: Low-level data structure handling, portability wrappers, and interfaces for runtime functionality
2 # URL: https://www.gtk.org/
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4 # Depends on: elfutils libffi libpcre2 meson ninja util-linux
5
6 name=glib
7 version=2.74.0
8 release=1
9 source=(https://download.gnome.org/sources/$name/${version:0:4}/$name-$version.tar.xz \
10 gschemas.compiled)
11
12 build() {
13 sed 's|/var/run/dbus|/run/dbus|' -i $name-$version/gio/gdbusaddress.c
14
15 meson setup build $name-$version \
16 --prefix=/usr \
17 --buildtype=plain \
18 --wrap-mode nodownload \
19 -D b_lto=true \
20 -D b_pie=true \
21 -D nls=disabled \
22 -D selinux=disabled \
23 -D gtk_doc=false \
24 -D tests=false
25 meson compile -C build -j ${JOBS:-1}
26 DESTDIR=$PKG meson install -C build
27
28 export PYTHONHASHSEED=0
29 /usr/bin/python3 -m compileall -d /usr/share/glib-2.0/codegen $PKG/usr/share/glib-2.0/codegen
30 /usr/bin/python3 -O -m compileall -d /usr/share/glib-2.0/codegen $PKG/usr/share/glib-2.0/codegen
31
32 install -m 0644 $SRC/gschemas.compiled $PKG/usr/share/glib-2.0/schemas/gschemas.compiled
33 prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
34 }
|