jobextra/gtk-doc/PKGBUILD-arch

70 lines
1.6 KiB
Text
Raw Permalink Normal View History

2022-03-20 13:34:07 +01:00
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=gtk-doc
2024-03-05 23:52:04 +01:00
pkgver=1.34.0
2024-12-29 23:05:09 +01:00
pkgrel=2
2022-03-20 13:34:07 +01:00
pkgdesc="Documentation tool for public library API"
url="https://www.gtk.org/gtk-doc/"
arch=(any)
2023-07-18 10:12:03 +02:00
license=(
2024-03-05 23:52:04 +01:00
GFDL-1.1-or-later
GPL-2.0-or-later
2023-07-18 10:12:03 +02:00
)
depends=(
docbook-xml
docbook-xsl
glib2-docs
2024-12-29 23:05:09 +01:00
python
2023-07-18 10:12:03 +02:00
python-lxml
python-pygments
2024-12-29 23:05:09 +01:00
sh
2023-07-18 10:12:03 +02:00
)
makedepends=(
dblatex
git
meson
yelp-tools
)
checkdepends=(
bc
gtk3
python-parameterized
)
2024-12-29 23:05:09 +01:00
optdepends=(
'dblatex: PDF support'
)
2023-07-18 10:12:03 +02:00
source=(
2024-12-29 23:05:09 +01:00
"git+https://gitlab.gnome.org/GNOME/gtk-doc.git#tag=$pkgver"
2024-03-05 23:52:04 +01:00
0001-Fix-tests.patch
2024-12-29 23:05:09 +01:00
0002-Fix-syntax-warnings.patch
2023-07-18 10:12:03 +02:00
)
2024-12-29 23:05:09 +01:00
b2sums=('3b2b55a85e5ab4b168bb322667a7552bc3ee6c21e05309e498a1768b36a86ce267bd492ff5d1d22fc829b7625a5b93a045177f72c56e04d6563c6c9bc464ef44'
'aec43a320f2c687a8c3529eb0b396dcf318b08fec8dcae06d3c2ab0ddeed04e1d324bac158cc15a50ddae768b42a815742a86c24917b295f3c3f6f2d7ad225c7'
'5a096a4dfd3b1ee5bd3d60606d5714fc8baefb08f12e846b25dc5235b89f3ed22d2e20ae45c36f4cfd73c9b1ae38c097884646653e4e5ae477164321968a9532')
2022-03-20 13:34:07 +01:00
prepare() {
2023-07-18 10:12:03 +02:00
cd gtk-doc
2022-03-20 13:34:07 +01:00
2023-07-18 10:12:03 +02:00
# test-gobject-mkhtml: ../xml/object.xml:139: element include: XInclude error : could not load ../../examples/gobject.c, and no fallback was found
2024-03-05 23:52:04 +01:00
git apply -3 ../0001-Fix-tests.patch
2024-12-29 23:05:09 +01:00
# SyntaxWarning: invalid escape sequence '\s'
git apply -3 ../0002-Fix-syntax-warnings.patch
2022-03-20 13:34:07 +01:00
}
build() {
2023-07-18 10:12:03 +02:00
arch-meson gtk-doc build
2022-03-20 13:34:07 +01:00
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
2023-07-18 10:12:03 +02:00
meson install -C build --destdir "$pkgdir"
2022-03-20 13:34:07 +01:00
}
2023-07-18 10:12:03 +02:00
# vim:set sw=2 sts=-1 et: