2024-11-02 18:01:25 +08:00
|
|
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
|
|
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
|
|
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
|
|
|
# then please put 'unknown'.
|
|
|
|
|
|
|
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
2024-11-02 18:07:34 +08:00
|
|
|
pkgname=(gobject-introspection gobject-introspection-runtime libgirepository)
|
2024-11-02 18:01:25 +08:00
|
|
|
pkgbase=gobject-introspection
|
2024-11-02 18:07:34 +08:00
|
|
|
pkgver=1.82.0
|
|
|
|
_glibver=2.82.2
|
2024-11-02 18:01:25 +08:00
|
|
|
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=(
|
2024-11-02 18:07:34 +08:00
|
|
|
"glib2=${_glibver}"
|
2024-11-02 18:01:25 +08:00
|
|
|
'cairo'
|
|
|
|
'glibc'
|
2024-11-02 18:07:34 +08:00
|
|
|
'git'
|
|
|
|
'gtk-doc'
|
2024-11-02 18:01:25 +08:00
|
|
|
'libffi'
|
|
|
|
'meson'
|
|
|
|
'python'
|
|
|
|
'python-mako'
|
|
|
|
'python-markdown'
|
|
|
|
'python-setuptools'
|
|
|
|
'python-sphinx'
|
|
|
|
)
|
2024-11-02 18:07:34 +08:00
|
|
|
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)
|
2024-11-02 18:01:25 +08:00
|
|
|
sha256sums=(SKIP
|
2024-11-02 18:07:34 +08:00
|
|
|
SKIP
|
2024-11-02 18:01:25 +08:00
|
|
|
SKIP)
|
|
|
|
|
2024-11-02 18:07:34 +08:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2024-11-02 18:01:25 +08:00
|
|
|
build() {
|
|
|
|
cd ${pkgbase}
|
|
|
|
|
|
|
|
meson setup build \
|
2024-11-02 18:07:34 +08:00
|
|
|
--prefix=/usr \
|
|
|
|
-Dbuildtype=release \
|
|
|
|
-Dlibdir=/usr/lib64 \
|
|
|
|
-Dgtk_doc=true \
|
|
|
|
-Dglib_src_dir=${srcdir}/glib
|
2024-11-02 18:01:25 +08:00
|
|
|
|
|
|
|
meson compile -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
package_gobject-introspection() {
|
|
|
|
depends=(
|
|
|
|
"gobject-introspection-runtime=${pkgver}-${pkgrel}"
|
2024-11-02 18:07:34 +08:00
|
|
|
"libgirepository=${pkgver}-${pkgrel}"
|
|
|
|
'glib2'
|
|
|
|
'glibc'
|
|
|
|
'libffi'
|
2024-11-02 18:01:25 +08:00
|
|
|
'python'
|
|
|
|
'python-mako'
|
|
|
|
'python-markdown'
|
|
|
|
'python-setuptools'
|
|
|
|
)
|
2024-11-02 18:07:34 +08:00
|
|
|
|
2024-11-02 18:01:25 +08:00
|
|
|
cd ${pkgbase}
|
|
|
|
|
|
|
|
meson install -C build --destdir ${pkgdir}
|
|
|
|
|
2024-11-02 18:07:34 +08:00
|
|
|
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
|
2024-11-02 18:01:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_gobject-introspection-runtime() {
|
|
|
|
pkgdesc+=" - runtime"
|
|
|
|
depends=("libgirepository=${pkgver}-${pkgrel}")
|
2024-11-02 18:07:34 +08:00
|
|
|
|
2024-11-02 18:01:25 +08:00
|
|
|
mv runtime/* ${pkgdir}
|
|
|
|
}
|
|
|
|
|
|
|
|
package_libgirepository() {
|
|
|
|
pkgdesc+=" - runtime library"
|
|
|
|
depends=('glib2' 'glibc' 'libffi')
|
2024-11-02 18:07:34 +08:00
|
|
|
|
2024-11-02 18:01:25 +08:00
|
|
|
mv libg/* ${pkgdir}
|
|
|
|
}
|