jobextra/gtk-doc/PKGBUILD

59 lines
1.7 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=02
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)
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
}
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
95208f0e0dd6e888892b04e3396b131218d1d98e433edfbd4af70b158921319c) # 0001-Partially-revert-a-gtk-doc-1.31-change-that-broke-e-.patch
## 1a6332d6a1a1943c228010aa21a182978e69395fd922020d92433571e82278c6 gtk-doc-1.33.2-02-x86_64.pkg.tar.lz