CRUX-ARM : Home

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