blob: 0a45a5fe153a8f283297c527cd171a35fdfde63c (
plain) (
tree)
|
|
# Maintainer:
pkgname=gobject-introspection
pkgver=1.58.0
pkgrel=0
pkgdesc="Introspection system for GObject-based libraries"
url="https://wiki.gnome.org/action/show/Projects/GObjectIntrospection"
arch="all"
license="LGPL-2.0+ AND GPL-2.0+ AND MIT"
depends=""
depends_dev="python3 cairo-dev libtool"
makedepends="$depends_dev bison flex glib-dev libffi-dev meson ninja python3-dev
cmd:which"
checkdepends="sed"
subpackages="$pkgname-doc $pkgname-dev"
replaces="libgirepository"
source="https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
prepare() {
cd "$builddir"
default_prepare
mkdir -p build
}
build() {
cd "$builddir"/build
meson -Dprefix=/usr
ninja
}
check() {
cd "$builddir"/build
ninja test
}
package() {
cd "$builddir"/build
DESTDIR="$pkgdir" ninja install
}
dev() {
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/share "$subpkgdir"/usr/
mv "$pkgdir"/usr/lib/gobject-introspection "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
default_dev
replaces="gobject-introspection"
}
sha512sums="838fda0ddf1889f402eb03edbb82ace28b01b2392fb62be9bb32721aa7aadca6e906f9286c54c2c90d15cd77b258513eb939f2992daf726089755e23a8a17b78 gobject-introspection-1.58.0.tar.xz"
|