opt/glib/Pkgfile

32 lines
1.0 KiB
Plaintext
Raw Normal View History

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
2021-10-28 17:59:39 +02:00
version=2.70.1
2020-05-23 09:53:46 +02:00
release=1
source=(https://download.gnome.org/sources/$name/${version:0:4}/$name-$version.tar.xz \
gschemas.compiled)
2012-06-17 19:24:47 +02:00
2021-02-03 17:44:26 +01:00
build() {
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 \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
2020-12-19 13:40:00 +01:00
-D nls=disabled \
-D selinux=disabled \
2020-12-19 13:40:00 +01:00
-D gtk_doc=false
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
2013-04-06 11:24:19 +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
install -m 0644 $SRC/gschemas.compiled $PKG/usr/share/glib-2.0/schemas/gschemas.compiled
prt-get isinst bash-completion || rm -r $PKG/usr/share/bash-completion
2012-06-17 19:24:47 +02:00
}