2009-04-20 00:57:08 +00:00
|
|
|
# Template file for 'libnotify'
|
|
|
|
pkgname=libnotify
|
2013-09-04 08:28:58 +00:00
|
|
|
version=0.7.6
|
2014-02-04 05:50:52 +00:00
|
|
|
revision=2
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-03-27 05:50:17 +00:00
|
|
|
configure_args="--disable-static"
|
2014-02-04 05:50:52 +00:00
|
|
|
hostmakedepends="pkg-config glib-devel"
|
|
|
|
makedepends="libglib-devel libpng-devel gdk-pixbuf-devel"
|
2009-04-20 00:57:08 +00:00
|
|
|
short_desc="Desktop notification library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-08-29 06:49:00 +00:00
|
|
|
homepage="http://library.gnome.org/devel/notification-spec/"
|
|
|
|
license="LGPL-2.1"
|
2013-04-13 08:15:49 +00:00
|
|
|
distfiles="${GNOME_SITE}/$pkgname/0.7/$pkgname-$version.tar.xz"
|
2013-09-04 08:28:58 +00:00
|
|
|
checksum=0ef61ca400d30e28217979bfa0e73a7406b19c32dd76150654ec5b2bdf47d837
|
2014-02-04 05:50:52 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
}
|
2009-04-20 00:57:08 +00:00
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
libnotify-devel_package() {
|
2014-02-04 05:50:52 +00:00
|
|
|
depends="gdk-pixbuf-devel libglib-devel ${sourcepkg}>=${version}_${revision}"
|
2013-09-04 08:28:58 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-09-04 08:28:58 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|