void-packages/srcpkgs/telepathy-glib/template

44 lines
1.2 KiB
Plaintext

# Template file for 'telepathy-glib'
pkgname=telepathy-glib
version=0.24.1
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config intltool libxslt python glib-devel"
makedepends="dbus-glib-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=9e0df1d8f857e0270cf0b32e2d1ca5a24aa7282873361785d573f72ad7f7d5eb
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-vala-bindings --enable-introspection"
makedepends+=" gobject-introspection vala-devel"
else
configure_args+=" --disable-vala-bindings --disable-introspection"
fi
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
vmove usr/share/vala
fi
vmove usr/share/gtk-doc
vmove "usr/lib/*.so"
}
}