void-packages/srcpkgs/libnotify/template

48 lines
1.3 KiB
Text
Raw Normal View History

# Template file for 'libnotify'
pkgname=libnotify
2013-09-04 08:28:58 +00:00
version=0.7.6
revision=2
build_style=gnu-configure
2012-03-27 05:50:17 +00:00
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>"
2011-08-29 06:49:00 +00:00
homepage="http://library.gnome.org/devel/notification-spec/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/0.7/$pkgname-$version.tar.xz"
2013-09-04 08:28:58 +00:00
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}"
2013-09-04 08:28:58 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
2013-09-04 08:28:58 +00:00
vmove "usr/lib/*.so"
}
}