void-packages/srcpkgs/libnotify/template

38 lines
1.1 KiB
Bash

# Template file for 'libnotify'
pkgname=libnotify
version=0.7.7
revision=2
build_style=gnu-configure
build_helper="gir"
configure_args="--disable-static $(vopt_enable gir introspection)"
hostmakedepends="pkg-config glib-devel"
makedepends="libglib-devel libpng-devel gdk-pixbuf-devel gtk+3-devel"
short_desc="Desktop notification library"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://library.gnome.org/devel/notification-spec/"
distfiles="${GNOME_SITE}/${pkgname}/0.7/${pkgname}-${version}.tar.xz"
checksum=9cb4ce315b2655860c524d46b56010874214ec27e854086c1a1d0260137efc04
# Package build options
build_options="gir"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
libnotify-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}