Commit | Line | Data |
---|---|---|
c69ea056 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 | |
5 | # Packager: Matt Housh, jaeger at morpheus dot net | |
629763a8 VM |
6 | # Depends on: glib libffi |
7 | # Optional: cairo python3-mako python3-markdown | |
c69ea056 VM |
8 | |
9 | name=gobject-introspection | |
9f636779 | 10 | version=1.70.0 |
629763a8 VM |
11 | release=2 |
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) | |
c69ea056 VM |
14 | |
15 | build() { | |
629763a8 VM |
16 | prt-get isinst cairo || PKGMK_GOBJECTINTROSPECTION+=' -D cairo=disabled' |
17 | prt-get isinst python3-mako python3-markdown || PKGMK_GOBJECTINTROSPECTION+=' -D doctool=disabled' | |
c69ea056 | 18 | |
629763a8 VM |
19 | patch -d $name-$version -p1 -i $SRC/gobject-introspection-1.70.0-meson-0.61.patch |
20 | ||
21 | meson build $name-$version $PKGMK_GOBJECTINTROSPECTION \ | |
22 | --prefix /usr \ | |
23 | --buildtype plain \ | |
24 | --wrap-mode nodownload \ | |
25 | -D b_lto=true \ | |
26 | -D b_pie=true | |
c69ea056 | 27 | |
4ada919f | 28 | ninja -C build -j ${JOBS:-1} |
629763a8 VM |
29 | DESTDIR=$PKG meson install -C build |
30 | ||
31 | /usr/bin/python3 -m compileall -d /usr/lib/$name $PKG | |
32 | /usr/bin/python3 -O -m compileall -d /usr/lib/$name $PKG | |
33 | /usr/bin/python3 -OO -m compileall -d /usr/lib/$name $PKG | |
c69ea056 | 34 | } |