void-packages/srcpkgs/gobject-introspection/template

44 lines
1.4 KiB
Bash

# Template file for 'gobject-introspection'
pkgname=gobject-introspection
version=1.58.1
revision=1
build_style=meson
pycompile_version="$py3_ver"
pycompile_dirs="usr/lib/${pkgname}/giscanner"
hostmakedepends="flex pkg-config"
makedepends="cairo-devel libffi-devel libglib-devel libxml2-devel python3-devel"
depends="libgirepository-devel"
short_desc="Introspection system for GObject-based libraries"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/GObjectIntrospection"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=4954681fa5c5ed95451d914de89de1263a5b35158b1ded1a8b870042c0d0df89
nocross=yes
gir-freedesktop_package() {
short_desc="Introspection data for some FreeDesktop components"
pkg_install() {
vmove usr/lib/girepository-1.0
}
}
libgirepository_package() {
short_desc="Library for handling GObject introspection data (runtime library)"
depends="gir-freedesktop-${version}_${revision}"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libgirepository-devel_package() {
depends="cairo-devel libffi-devel libglib-devel libgirepository>=${version}_${revision}"
short_desc="Library for handling GObject introspection data (development files)"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gir-1.0
}
}