X-Git-Url: http://gitweb/?a=blobdiff_plain;f=gobject-introspection%2FPkgfile;h=f2a0060701c1daf37475d2a87d545238c4f5329e;hb=ae684e64cb5f33be57e6a5a8a2dabdf3578e5e77;hp=083639beaa2de9defc24aa48bc5aeef9f4aaee47;hpb=4ada919fb5888b8b30e8c9281603e5486eef09c9;p=ports%2Fopt-arm64.git diff --git a/gobject-introspection/Pkgfile b/gobject-introspection/Pkgfile index 083639b..f2a0060 100644 --- a/gobject-introspection/Pkgfile +++ b/gobject-introspection/Pkgfile @@ -3,21 +3,32 @@ # Maintainer: Danny Rawlins, crux at romster dot me # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu # Packager: Matt Housh, jaeger at morpheus dot net -# Depends on: python glib +# Depends on: glib libffi +# Optional: cairo python3-mako python3-markdown name=gobject-introspection -version=1.60.1 -release=1 -source=(http://ftp.gnome.org/pub/GNOME/sources/$name/${version::4}/$name-$version.tar.xz) +version=1.70.0 +release=2 +source=(http://ftp.gnome.org/pub/GNOME/sources/$name/${version::4}/$name-$version.tar.xz + gobject-introspection-1.70.0-meson-0.61.patch) build() { - cd $name-$version + prt-get isinst cairo || PKGMK_GOBJECTINTROSPECTION+=' -D cairo=disabled' + prt-get isinst python3-mako python3-markdown || PKGMK_GOBJECTINTROSPECTION+=' -D doctool=disabled' - meson build \ - --prefix /usr \ - -D gtk_doc=false \ - -D doctool=false + patch -d $name-$version -p1 -i $SRC/gobject-introspection-1.70.0-meson-0.61.patch + + meson build $name-$version $PKGMK_GOBJECTINTROSPECTION \ + --prefix /usr \ + --buildtype plain \ + --wrap-mode nodownload \ + -D b_lto=true \ + -D b_pie=true ninja -C build -j ${JOBS:-1} - DESTDIR="$PKG" ninja -C build install + 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 }