libnotify: avoid gtk+3 dependency; added gir build option.

This commit is contained in:
Juan RP 2014-02-04 06:50:52 +01:00
parent 9730977315
commit 42bd0fe05f
1 changed files with 26 additions and 7 deletions

View File

@ -1,23 +1,42 @@
# Template file for 'libnotify'
pkgname=libnotify
version=0.7.6
revision=1
revision=2
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config gobject-introspection"
makedepends="libglib-devel libpng-devel gdk-pixbuf-devel gtk+3-devel"
hostmakedepends="pkg-config glib-devel"
makedepends="libglib-devel libpng-devel gdk-pixbuf-devel"
short_desc="Desktop notification library"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://library.gnome.org/devel/notification-spec/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/0.7/$pkgname-$version.tar.xz"
checksum=0ef61ca400d30e28217979bfa0e73a7406b19c32dd76150654ec5b2bdf47d837
long_desc="
libnotify is an implementation of the freedesktop.org desktop
notification specification."
# 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"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
pre_configure() {
# Avoid gtk+3 dependency, it's only required for tests.
sed -e 's,^tests_modules.*,tests_modules="glib-2.0",g' -i configure
sed -e '/SUBDIRS =.*/s/tests//g' -i Makefile.in
}
libnotify-devel_package() {
depends="gdk-pixbuf-devel libglib-devel libnotify>=${version}"
depends="gdk-pixbuf-devel libglib-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include