gobject-introspection 1.82.0-1

This commit is contained in:
xhaa123 2024-11-02 18:07:34 +08:00
parent 345c0b36b1
commit 14f705027f

View File

@ -4,44 +4,53 @@
# then please put 'unknown'. # then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com> # Maintainer: Future Linux Team <future_linux@163.com>
pkgname=( gobject-introspection gobject-introspection-runtime libgirepository) pkgname=(gobject-introspection gobject-introspection-runtime libgirepository)
pkgbase=gobject-introspection pkgbase=gobject-introspection
pkgver=1.80.1 pkgver=1.82.0
glib2_ver=2.80.0 _glibver=2.82.2
pkgrel=1 pkgrel=1
pkgdesc="Introspection system for GObject-based libraries" pkgdesc="Introspection system for GObject-based libraries"
arch=('x86_64') arch=('x86_64')
url="https://wiki.gnome.org/Projects/GObjectIntrospection" url="https://wiki.gnome.org/Projects/GObjectIntrospection"
license=('GPL-2.0-or-later' 'LGPL-2.0-or-later') license=('GPL-2.0-or-later' 'LGPL-2.0-or-later')
makedepends=( makedepends=(
"glib2=${glib2_ver}" "glib2=${_glibver}"
'cairo' 'cairo'
'git'
'glibc' 'glibc'
'git'
'gtk-doc'
'libffi' 'libffi'
'meson' 'meson'
'python' 'python'
'gtk-doc'
'python-mako' 'python-mako'
'python-markdown' 'python-markdown'
'python-setuptools' 'python-setuptools'
'python-sphinx' 'python-sphinx'
) )
source=(git+https://gitlab.gnome.org/GNOME/gobject-introspection.git#tag=${pkgver} source=(git+https://github.com/GNOME/gobject-introspection.git#tag=${pkgver}
git+https://gitlab.gnome.org/GNOME/glib.git#tag=${glib2_ver}) git+https://github.com/GNOME/glib.git#tag=${_glibver}
git+https://github.com/GNOME/gobject-introspection-tests.git)
sha256sums=(SKIP sha256sums=(SKIP
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() { build() {
cd ${pkgbase} cd ${pkgbase}
meson setup build \ meson setup build \
--prefix=/usr \ --prefix=/usr \
--buildtype=release \ -Dbuildtype=release \
-Dlibdir=/usr/lib64 \ -Dlibdir=/usr/lib64 \
-Dpython=python3 \ -Dgtk_doc=true \
-Dgtk_doc=true \ -Dglib_src_dir=${srcdir}/glib
-Dglib_src_dir=${srcdir}/glib
meson compile -C build meson compile -C build
} }
@ -49,8 +58,10 @@ build() {
package_gobject-introspection() { package_gobject-introspection() {
depends=( depends=(
"gobject-introspection-runtime=${pkgver}-${pkgrel}" "gobject-introspection-runtime=${pkgver}-${pkgrel}"
"libgirepository=${pkgver}-${pkgrel}" 'glib2' 'glibc' "libgirepository=${pkgver}-${pkgrel}"
'libffi' 'glib2'
'glibc'
'libffi'
'python' 'python'
'python-mako' 'python-mako'
'python-markdown' 'python-markdown'
@ -61,19 +72,17 @@ package_gobject-introspection() {
meson install -C build --destdir ${pkgdir} meson install -C build --destdir ${pkgdir}
cd ${pkgdir} python3 -m compileall -d /usr/lib64/${pkgbase} ${pkgdir}/usr/lib64/${pkgbase}
python3 -O -m compileall -d /usr/lib64/${pkgbase} ${pkgdir}/usr/lib64/${pkgbase}
python3 -m compileall -d /usr/lib64/$pkgbase usr/lib64/$pkgbase _pick libg ${pkgdir}/usr/include/gobject-introspection-1.0
python3 -O -m compileall -d /usr/lib64/$pkgbase usr/lib64/$pkgbase _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 libg usr/include/gobject-introspection-1.0 _pick runtime ${pkgdir}/usr/lib64/girepository-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
} }
package_gobject-introspection-runtime() { package_gobject-introspection-runtime() {