Name libnotify
Description Desktop notification library
Version 0.8.6-r0
Package Base libnotify
Homepage https://gitlab.gnome.org/GNOME/libnotify
Maintainers ['Natanael Copa <ncopa@alpinelinux.org>']
Contributors ['Leo <thinkabit.ukim@gmail.com>']
Distro-repo https://gitlab.alpinelinux.org/alpine/aports/-/tree/3.22-stable/community/libnotify
Sources ['https://download.gnome.org/sources/libnotify/${pkgver%.*}/libnotify-0.8.6-r0.tar.xz']
Dependencies ['libc.musl-x86_64.so.1', 'libgdk_pixbuf-2.0.so.0', 'libgio-2.0.so.0', 'libglib-2.0.so.0', 'libgobject-2.0.so.0']
Optional-Dependencies []
Build-Dependencies ['dbus-dev', 'docbook-xsl', 'gdk-pixbuf-dev', 'gobject-introspection-dev', 'gtk+3.0-dev', 'meson']
Provides ['so:libnotify.so.4=4.0.0', 'cmd:notify-send=0.8.6-r0']
Builddate 18-04-2025 13:47:57
Architecture x86_64
Distro-Version v3.22
Licenses ['LGPL-2.1-or-later']
Hash Q1x5CI72qJFy5Cei+T0TvYYGbDS3Q=
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnotify
pkgver=0.8.6
pkgrel=0
pkgdesc="Desktop notification library"
url="https://gitlab.gnome.org/GNOME/libnotify"
arch="all"
options="!check" # No tests defined when building with meson.
license="LGPL-2.1-or-later"
makedepends="
	dbus-dev
	docbook-xsl
	gdk-pixbuf-dev
	gobject-introspection-dev
	gtk+3.0-dev
	meson
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/libnotify/${pkgver%.*}/libnotify-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dtests="$(want_check && echo true || echo false)"\
		-Dintrospection=enabled \
		-Dgtk_doc=false \
		-Dman=true \
		output
	meson compile -C output
}

check() {
	meson test --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
6e566f5907cfd7d623d58f5aa22d547271feb7e52bf28e463ecb98a763d6f7ad38cacc473d65e6f4a7e44c0514ab008078042e56a8b61edb719b9a1d192c2e34  libnotify-0.8.6.tar.xz
"