30 lines
999 B
Plaintext
30 lines
999 B
Plaintext
# Description: A middleware layer between C libraries (using GObject) and language bindings
|
|
# URL: https://live.gnome.org/GObjectIntrospection
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: glib
|
|
# Optional: cairo python3-mako python3-markdown
|
|
|
|
name=gobject-introspection
|
|
version=1.76.1
|
|
release=1
|
|
source=(https://download.gnome.org/sources/$name/${version::4}/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
prt-get isinst cairo || PKGMK_GOBJECTINTROSPECTION+=' -D cairo=disabled'
|
|
prt-get isinst python3-mako python3-markdown || PKGMK_GOBJECTINTROSPECTION+=' -D doctool=disabled'
|
|
|
|
meson setup $name-$version build \
|
|
--prefix=/usr \
|
|
--buildtype=plain \
|
|
--wrap-mode nodownload \
|
|
-D b_lto=true \
|
|
-D b_pie=true
|
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
/usr/bin/python3 -m compileall -d /usr/lib/$name $PKG
|
|
/usr/bin/python3 -O -m compileall -d /usr/lib/$name $PKG
|
|
/usr/bin/python3 -OO -m compileall -d /usr/lib/$name $PKG
|
|
}
|