community/libnotify: enable man pages

This commit is contained in:
Sertonix 2024-02-24 15:39:02 +01:00 committed by Natanael Copa
parent 116a365f21
commit 92b4ca3d17
2 changed files with 19 additions and 4 deletions

View File

@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnotify
pkgver=0.8.3
pkgrel=0
pkgrel=1
pkgdesc="Desktop notification library"
url="https://gitlab.gnome.org/GNOME/libnotify"
arch="all"
@ -10,13 +10,16 @@ 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"
source="https://download.gnome.org/sources/libnotify/${pkgver%.*}/libnotify-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/libnotify/${pkgver%.*}/libnotify-$pkgver.tar.xz
docbook-url.patch
"
build() {
abuild-meson \
@ -24,7 +27,7 @@ build() {
-Dtests="$(want_check && echo true || echo false)"\
-Dintrospection=enabled \
-Dgtk_doc=false \
-Dman=false \
-Dman=true \
output
meson compile -C output
}
@ -39,4 +42,5 @@ package() {
sha512sums="
e55073fdf418a4c04375825221edc92ab6a01201b83db2a1f1530f8f91f7da9da32327452b0785251790553517dcc717cfe623142450691b7dd247ec9164cffb libnotify-0.8.3.tar.xz
0df7aeb5aa6688cc2272e5f1bb39f5ef2644d245c9d7bbbf54c0e1ecfe9621f08e6fc6f3489bafe5feff5452df00bd230bc457404390df242ee0a2a686005a5b docbook-url.patch
"

View File

@ -0,0 +1,11 @@
--- a/meson.build
+++ b/meson.build
@@ -57,7 +57,7 @@
if get_option('man')
xsltproc = find_program('xsltproc', required: true)
- stylesheet = 'http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl'
+ stylesheet = 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl'
xsltproc_command = [
xsltproc,
'--nonet',