void-packages/srcpkgs/libnotify/template

39 lines
1.2 KiB
Bash

# Template file for 'libnotify'
pkgname=libnotify
version=0.7.6
revision=4
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="pkg-config glib-devel $(vopt_if gir gobject-introspection)"
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"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
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="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}