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
|
|
|
|
# Depends on: libpcre util-linux meson ninja
|
2012-06-17 19:24:47 +02:00
|
|
|
|
|
|
|
name=glib
|
2022-03-18 11:08:08 +01:00
|
|
|
version=2.72.0
|
2020-05-23 09:53:46 +02:00
|
|
|
release=1
|
|
|
|
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 \
|
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 \
|
2020-12-19 13:40:00 +01:00
|
|
|
-D nls=disabled \
|
2021-09-18 14:31:43 +02:00
|
|
|
-D selinux=disabled \
|
2021-12-03 12:07:49 +01:00
|
|
|
-D gtk_doc=false \
|
|
|
|
-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
|
|
|
}
|