void-packages/srcpkgs/libnotify/template

35 lines
1.1 KiB
Bash

# Template file for 'libnotify'
pkgname=libnotify
version=0.8.1
revision=1
build_style=meson
build_helper="gir"
configure_args="-Dintrospection=$(vopt_if gir enabled disabled)
-Dgtk_doc=false -Ddocbook_docs=disabled"
hostmakedepends="pkg-config glib-devel libxslt docbook-xsl-ns"
makedepends="libglib-devel libpng-devel gdk-pixbuf-devel gtk+3-devel"
short_desc="Desktop notification library"
maintainer="André Cerqueira <acerqueira021@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://gitlab.gnome.org/GNOME/libnotify"
changelog="https://gitlab.gnome.org/GNOME/libnotify/-/raw/master/NEWS"
distfiles="https://gitlab.gnome.org/GNOME/${pkgname}/-/archive/${version}/${pkgname}-${version}.tar.gz"
checksum=7c0b252edecbf08db50d775f9e720ecc03c742fb97c25f3966a8b7a4bedf8133
# Package build options
build_options="gir"
build_options_default="gir"
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
}
}