void-packages/srcpkgs/telepathy-glib/template
2014-03-27 11:00:08 +01:00

45 lines
1.3 KiB
Text

# Template file for 'telepathy-glib'
pkgname=telepathy-glib
version=0.24.0
revision=1
build_style=gnu-configure
configure_args="--enable-vala-bindings --disable-static"
hostmakedepends="pkg-config intltool libxslt"
makedepends="dbus-glib-devel vala-devel"
short_desc="Library for GLib-based Telepathy components"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://telepathy.freedesktop.org"
distfiles="$homepage/releases/$pkgname/$pkgname-$version.tar.gz"
checksum=ae0002134991217f42e503c43dea7817853afc18863b913744d51ffa029818cf
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
hostmakedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
telepathy-glib-devel_package() {
depends="vala-devel 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
vmove usr/share/gtk-doc
vmove usr/share/vala
vmove "usr/lib/*.so"
}
}