void-packages/srcpkgs/libnotify/template

47 lines
1.3 KiB
Text

# Template file for 'libnotify'
pkgname=libnotify
version=0.7.6
revision=2
build_style=gnu-configure
configure_args="--disable-static"
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
# 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 ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}