void-packages/srcpkgs/glib/template
2020-10-20 19:43:39 -03:00

69 lines
2.1 KiB
Bash

# Template file for 'glib'
pkgname=glib
version=2.66.2
revision=1
build_style=meson
configure_args="-Dfam=false -Dman=true -Dselinux=disabled
$(vopt_bool gtk_doc gtk_doc)"
hostmakedepends="gettext pkg-config libxslt docbook-xsl $(vopt_if gtk_doc gtk-doc)"
makedepends="zlib-devel pcre-devel libffi-devel dbus-devel elfutils-devel libmount-devel"
checkdepends="desktop-file-utils shared-mime-info tzdata dbus"
short_desc="GNU library of C routines"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/GLib"
changelog="https://gitlab.gnome.org/GNOME/glib/raw/master/NEWS"
distfiles="${GNOME_SITE}/glib/${version%.*}/glib-${version}.tar.xz"
checksum=ec390bed4e8dd0f89e918f385e8d4cfd7470b1ef7c1ce93ec5c4fc6e3c6a17c4
build_options="gtk_doc"
desc_option_gtk_doc="Build GTK API docs"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
fi
do_check() {
dbus-run-session ninja -C build test
}
libglib-devel_package() {
depends="${makedepends} glib>=${version}_${revision}"
short_desc+=" - development files"
lib32files="/usr/lib/glib-2.0/include/glibconfig.h"
pkg_install() {
vmove usr/include
vmove usr/lib/glib-2.0
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
glib-devel_package() {
depends="python3 libglib-devel>=${version}_${revision}"
short_desc+=" - development files"
python_version=3
pycompile_dirs="usr/share/glib-2.0/codegen usr/share/glib-2.0/gdb"
pkg_install() {
vmove usr/bin/glib-compile-resources
vmove usr/bin/glib-genmarshal
vmove usr/bin/glib-mkenums
vmove usr/bin/gtester-report
vmove usr/bin/gdbus-codegen
vmove usr/bin/gtester
vmove usr/bin/glib-gettextize
vmove usr/share/man/man1/glib-compile-resources.1
vmove usr/share/man/man1/glib-gettextize.1
vmove usr/share/man/man1/gtester.1
vmove usr/share/man/man1/glib-mkenums.1
vmove usr/share/man/man1/gdbus-codegen.1
vmove usr/share/man/man1/glib-genmarshal.1
vmove usr/share/man/man1/gtester-report.1
for f in aclocal glib-2.0 gdb; do
vmove usr/share/${f}
done
if [ -d $DESTDIR/usr/share/gtk-doc ]; then
vmove usr/share/gtk-doc
fi
}
}