blob: 81dca7aed71818d99f9393c38bf2c4909f3e0dda (
plain) (
tree)
|
|
# Maintainer:
pkgname=gobject-introspection
pkgver=1.60.2
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="8e8c1c3a025cb6c18933302ada8cce7c4826f22eef791c80a97abb28379239f8d99312e1237bcea1060f4d5cf65441909b9da434561982209bb4976b1f22529e gobject-introspection-1.60.2.tar.xz"
|