blob: c24d60c5d33db8cd4cdb450b397f074b0ddd1fba (
plain)
1 # Description: A middleware layer between C libraries (using GObject) and language bindings.
2 # URL: https://live.gnome.org/GObjectIntrospection
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: glib libffi
5 # Optional: cairo python3-mako python3-markdown
6
7 name=gobject-introspection
8 version=1.74.0
9 release=1
10 source=(https://download.gnome.org/sources/$name/${version::4}/$name-$version.tar.xz)
11
12 build() {
13 prt-get isinst cairo || PKGMK_GOBJECTINTROSPECTION+=' -D cairo=disabled'
14 prt-get isinst python3-mako python3-markdown || PKGMK_GOBJECTINTROSPECTION+=' -D doctool=disabled'
15
16 meson build $name-$version $PKGMK_GOBJECTINTROSPECTION \
17 --prefix /usr \
18 --buildtype plain \
19 --wrap-mode nodownload \
20 -D b_lto=true \
21 -D b_pie=true
22
23 ninja -C build -j ${JOBS:-1}
24 DESTDIR=$PKG meson install -C build
25
26 /usr/bin/python3 -m compileall -d /usr/lib/$name $PKG
27 /usr/bin/python3 -O -m compileall -d /usr/lib/$name $PKG
28 /usr/bin/python3 -OO -m compileall -d /usr/lib/$name $PKG
29 }
|