void-packages/srcpkgs/glib/template

65 lines
1.9 KiB
Bash

# Template file for 'glib'
pkgname=glib
version=2.58.0
revision=3
build_style=meson
configure_args="-Dfam=false -Dman=true -Dselinux=false"
hostmakedepends="pkg-config python3 libxslt docbook-xsl"
makedepends="zlib-devel pcre-devel libffi-devel dbus-devel elfutils-devel
libmount-devel m4"
checkdepends="desktop-file-utils shared-mime-info tzdata"
short_desc="The GNU library of C routines"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
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=c0f4ce0730b4f95c47b711613b5406a887c2ee13ea6d25930d72a4fa7fdb77f6
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" glib-devel"
else
hostmakedepends+=" gtk-doc"
configure_args+=" -Dgtk_doc=true"
fi
libglib-devel_package() {
depends="${makedepends} glib>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/glib-2.0
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
glib-devel_package() {
depends="python3 perl libglib-devel>=${version}_${revision}"
short_desc+=" - development files"
pycompile_dirs="/usr/share/glib-2.0"
python_version=3
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 [ -z "$CROSS_BUILD" ]; then
vmove usr/share/gtk-doc
fi
}
}