CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gobject-introspection: updated to 1.72.0
[ports/opt-arm64.git] / gobject-introspection / Pkgfile
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 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Packager: Matt Housh, jaeger at morpheus dot net
6 # Depends on: glib libffi
7 # Optional: cairo python3-mako python3-markdown
8
9 name=gobject-introspection
10 version=1.72.0
11 release=1
12 source=(http://ftp.gnome.org/pub/GNOME/sources/$name/${version::4}/$name-$version.tar.xz
13 gobject-introspection-1.70.0-meson-0.61.patch)
14
15 build() {
16 prt-get isinst cairo || PKGMK_GOBJECTINTROSPECTION+=' -D cairo=disabled'
17 prt-get isinst python3-mako python3-markdown || PKGMK_GOBJECTINTROSPECTION+=' -D doctool=disabled'
18
19 meson build $name-$version $PKGMK_GOBJECTINTROSPECTION \
20 --prefix /usr \
21 --buildtype plain \
22 --wrap-mode nodownload \
23 -D b_lto=true \
24 -D b_pie=true
25
26 ninja -C build -j ${JOBS:-1}
27 DESTDIR=$PKG meson install -C build
28
29 /usr/bin/python3 -m compileall -d /usr/lib/$name $PKG
30 /usr/bin/python3 -O -m compileall -d /usr/lib/$name $PKG
31 /usr/bin/python3 -OO -m compileall -d /usr/lib/$name $PKG
32 }