jobextra/gtk-doc/PKGBUILD
2023-07-18 11:12:03 +03:00

69 lines
2.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=gtk-doc
pkgver=1.33.2
pkgrel=03
pkgdesc="Documentation tool for public library API"
url="https://www.gtk.org/gtk-doc/"
depends=(docbook-xsl docbook-xml glib2-docs python-lxml python-pygments)
makedepends=(dblatex git yelp-tools meson)
checkdepends=(bc gtk3 python-six python-parameterized)
optdepends=('dblatex: PDF support')
_commit=14391142ee9d43da116f0f530746ae34cc46930a # tags/1.33.2^0
source=("git+https://gitlab.gnome.org/GNOME/gtk-doc.git#commit=$_commit"
0001-Partially-revert-a-gtk-doc-1.31-change-that-broke-e-.patch
0002-Fix-tests.patch)
pkgver() {
cd $pkgname
git describe --tags | sed 's/GTK_DOC_//;s/_/\./g;s/-/+/g'
}
prepare() {
cd $pkgname
# https://gitlab.gnome.org/GNOME/gtk-doc/-/merge_requests/58
git apply -3 ../0001-Partially-revert-a-gtk-doc-1.31-change-that-broke-e-.patch
# test-gobject-mkhtml: ../xml/object.xml:139: element include: XInclude error : could not load ../../exampl>
git apply -3 ../0002-Fix-tests.patch
}
build() {
arch-meson $pkgname build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
DESTDIR="$pkgdir" meson install -C build
python -m compileall -d /usr/lib "$pkgdir/usr/lib"
python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(GPL FDL)
sha256sums=(SKIP
5697a9965f3d91a5635a4b46d59bf2edd3e73f0cff1ba2d9f70d401262982683 # 0001-Partially-revert-a-gtk-doc-1.31-change-that-broke-e-.patch
fbb9d43c70b6816b6527e14676339685d0f41920f2d595048ca2f3e9193ae235) # 0002-Fix-tests.patch
b2sums=('SKIP'
'82161f0f0860e9b21748b6aadf3dd7017f4541240aa3b0d54bdec74d1b6b8e771a1ab74bc0420899d09b7125361c3fcc2acb15bdf0a3fef8753a08a0992a5eb0'
'aec43a320f2c687a8c3529eb0b396dcf318b08fec8dcae06d3c2ab0ddeed04e1d324bac158cc15a50ddae768b42a815742a86c24917b295f3c3f6f2d7ad225c7')
## ddcb7f5728eca798643234230a04cd778340522b5a6ecca8484895c9ed4c55a4 gtk-doc-1.33.2-03-x86_64.pkg.tar.lz