void-packages/srcpkgs/libnotify/template

34 lines
997 B
Bash

# Template file for 'libnotify'
pkgname=libnotify
version=0.7.7
revision=1
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 gtk+3-devel"
short_desc="Desktop notification library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://library.gnome.org/devel/notification-spec/"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/$pkgname/0.7/$pkgname-$version.tar.xz"
checksum=9cb4ce315b2655860c524d46b56010874214ec27e854086c1a1d0260137efc04
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
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"
}
}