diff --git a/PKGBUILD b/PKGBUILD index adc7c1e..e7f9096 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,44 +4,53 @@ # then please put 'unknown'. # Maintainer: Future Linux Team -pkgname=( gobject-introspection gobject-introspection-runtime libgirepository) +pkgname=(gobject-introspection gobject-introspection-runtime libgirepository) pkgbase=gobject-introspection -pkgver=1.80.1 -glib2_ver=2.80.0 +pkgver=1.82.0 +_glibver=2.82.2 pkgrel=1 pkgdesc="Introspection system for GObject-based libraries" arch=('x86_64') url="https://wiki.gnome.org/Projects/GObjectIntrospection" license=('GPL-2.0-or-later' 'LGPL-2.0-or-later') makedepends=( - "glib2=${glib2_ver}" + "glib2=${_glibver}" 'cairo' - 'git' 'glibc' + 'git' + 'gtk-doc' 'libffi' 'meson' 'python' - 'gtk-doc' 'python-mako' 'python-markdown' 'python-setuptools' 'python-sphinx' ) -source=(git+https://gitlab.gnome.org/GNOME/gobject-introspection.git#tag=${pkgver} - git+https://gitlab.gnome.org/GNOME/glib.git#tag=${glib2_ver}) +source=(git+https://github.com/GNOME/gobject-introspection.git#tag=${pkgver} + git+https://github.com/GNOME/glib.git#tag=${_glibver} + git+https://github.com/GNOME/gobject-introspection-tests.git) sha256sums=(SKIP + SKIP SKIP) +prepare() { + cd ${pkgbase} + + git submodule init + git submodule set-url gobject-introspection-tests ${srcdir}/gobject-introspection-tests + git -c protocol.file.allow=always -c protocol.allow=never submodule update +} + build() { cd ${pkgbase} meson setup build \ - --prefix=/usr \ - --buildtype=release \ - -Dlibdir=/usr/lib64 \ - -Dpython=python3 \ - -Dgtk_doc=true \ - -Dglib_src_dir=${srcdir}/glib + --prefix=/usr \ + -Dbuildtype=release \ + -Dlibdir=/usr/lib64 \ + -Dgtk_doc=true \ + -Dglib_src_dir=${srcdir}/glib meson compile -C build } @@ -49,43 +58,43 @@ build() { package_gobject-introspection() { depends=( "gobject-introspection-runtime=${pkgver}-${pkgrel}" - "libgirepository=${pkgver}-${pkgrel}" 'glib2' 'glibc' - 'libffi' + "libgirepository=${pkgver}-${pkgrel}" + 'glib2' + 'glibc' + 'libffi' 'python' 'python-mako' 'python-markdown' 'python-setuptools' ) - + cd ${pkgbase} meson install -C build --destdir ${pkgdir} - cd ${pkgdir} - - python3 -m compileall -d /usr/lib64/$pkgbase usr/lib64/$pkgbase - python3 -O -m compileall -d /usr/lib64/$pkgbase usr/lib64/$pkgbase - - _pick libg usr/include/gobject-introspection-1.0 - _pick libg usr/lib64/libgirepository-1.0.so* - _pick libg usr/lib64/pkgconfig/gobject-introspection*-1.0.pc - _pick libg usr/lib64/girepository-1.0/GIRepository-2.0.typelib - _pick libg usr/share/gir-1.0/GIRepository-2.0.gir - _pick libg usr/share/gtk-doc - - _pick runtime usr/lib64/girepository-1.0 + python3 -m compileall -d /usr/lib64/${pkgbase} ${pkgdir}/usr/lib64/${pkgbase} + python3 -O -m compileall -d /usr/lib64/${pkgbase} ${pkgdir}/usr/lib64/${pkgbase} + + _pick libg ${pkgdir}/usr/include/gobject-introspection-1.0 + _pick libg ${pkgdir}/usr/lib64/libgirepository-1.0.so* + _pick libg ${pkgdir}/usr/lib64/pkgconfig/gobject-introspection*-1.0.pc + _pick libg ${pkgdir}/usr/lib64/girepository-1.0/GIRepository-2.0.typelib + _pick libg ${pkgdir}/usr/share/gir-1.0/GIRepository-2.0.gir + _pick libg ${pkgdir}/usr/share/gtk-doc + + _pick runtime ${pkgdir}/usr/lib64/girepository-1.0 } package_gobject-introspection-runtime() { pkgdesc+=" - runtime" depends=("libgirepository=${pkgver}-${pkgrel}") - + mv runtime/* ${pkgdir} } package_libgirepository() { pkgdesc+=" - runtime library" depends=('glib2' 'glibc' 'libffi') - + mv libg/* ${pkgdir} }