telepathy-glib: update to 0.22.1; added gir build option.

This commit is contained in:
Juan RP 2014-01-30 16:30:33 +01:00
parent 0d46efc6ad
commit 0083208ed0

View file

@ -1,30 +1,43 @@
# Template file for 'telepathy-glib' # Template file for 'telepathy-glib'
pkgname=telepathy-glib pkgname=telepathy-glib
version=0.22.0 version=0.22.1
revision=1 revision=1
build_style=gnu-configure build_style=gnu-configure
configure_args="--enable-vala-bindings --disable-static" configure_args="--enable-vala-bindings --disable-static"
hostmakedepends="pkg-config intltool libxslt gobject-introspection" hostmakedepends="pkg-config intltool libxslt"
makedepends="dbus-glib-devel vala-devel" makedepends="dbus-glib-devel vala-devel"
short_desc="Library for GLib-based Telepathy components" short_desc="Library for GLib-based Telepathy components"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1" license="LGPL-2.1"
homepage="http://telepathy.freedesktop.org" homepage="http://telepathy.freedesktop.org"
distfiles="$homepage/releases/$pkgname/$pkgname-$version.tar.gz" distfiles="$homepage/releases/$pkgname/$pkgname-$version.tar.gz"
checksum=62081bac04d3d390793d08f6763880b522fbad632a08bf41a9191cfe95c01957 checksum=e82891404793b88407f3696ffb540b28d5949c4ed6f70a9aefb69477606ec26d
long_desc="
Telepathy is a D-Bus framework for unifying real time communication, # Package build options
including instant messaging, voice calls and video calls. It abstracts build_options="gir"
differences between protocols to provide a unified interface for desc_option_gir="Enable support for building gobject introspection data"
applications."
# 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() { telepathy-glib-devel_package() {
depends="vala-devel dbus-glib-devel ${sourcepkg}-${version}_${revision}" depends="vala-devel dbus-glib-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files" short_desc+=" - development files"
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0 vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc vmove usr/share/gtk-doc
vmove usr/share/vala vmove usr/share/vala
vmove "usr/lib/*.so" vmove "usr/lib/*.so"