gobject-introspection 1.80.1-1
This commit is contained in:
commit
345c0b36b1
91
PKGBUILD
Normal file
91
PKGBUILD
Normal file
@ -0,0 +1,91 @@
|
||||
# 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>
|
||||
pkgname=( gobject-introspection gobject-introspection-runtime libgirepository)
|
||||
pkgbase=gobject-introspection
|
||||
pkgver=1.80.1
|
||||
glib2_ver=2.80.0
|
||||
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}"
|
||||
'cairo'
|
||||
'git'
|
||||
'glibc'
|
||||
'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})
|
||||
sha256sums=(SKIP
|
||||
SKIP)
|
||||
|
||||
build() {
|
||||
cd ${pkgbase}
|
||||
|
||||
meson setup build \
|
||||
--prefix=/usr \
|
||||
--buildtype=release \
|
||||
-Dlibdir=/usr/lib64 \
|
||||
-Dpython=python3 \
|
||||
-Dgtk_doc=true \
|
||||
-Dglib_src_dir=${srcdir}/glib
|
||||
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
package_gobject-introspection() {
|
||||
depends=(
|
||||
"gobject-introspection-runtime=${pkgver}-${pkgrel}"
|
||||
"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
|
||||
}
|
||||
|
||||
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}
|
||||
}
|
Loading…
Reference in New Issue
Block a user