void-packages/srcpkgs/telepathy-glib/template

39 lines
1.1 KiB
Bash

# Template file for 'telepathy-glib'
pkgname=telepathy-glib
version=0.24.2
revision=1
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-static $(vopt_enable gir introspection)
$(vopt_enable vala vala-bindings)"
hostmakedepends="pkg-config intltool libxslt python3 glib-devel
$(vopt_if vala vala-devel)"
makedepends="dbus-glib-devel $(vopt_if vala vala)"
short_desc="Library for GLib-based Telepathy components"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://telepathy.freedesktop.org"
distfiles="${homepage}/releases/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=b0a374d771cdd081125f38c3abd079657642301c71a543d555e2bf21919273f0
# Package build options
build_options="gir vala"
build_options_default="gir vala"
telepathy-glib-devel_package() {
depends="dbus-glib-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
vmove usr/share/gtk-doc
vmove "usr/lib/*.so"
}
}