61 lines
1.7 KiB
Bash
61 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.34.0
|
|
pkgrel=01
|
|
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=b7c8317bf023b5116250b4c5381737d5b9786976 # tags/1.34.0^0
|
|
source=("git+https://gitlab.gnome.org/GNOME/gtk-doc.git#commit=$_commit"
|
|
0001-Fix-tests.patch)
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/GTK_DOC_//;s/_/\./g;s/[^-]*-g/r&/;s/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
|
|
# test-gobject-mkhtml: ../xml/object.xml:139: element include: XInclude error : could not load ../../exampl>
|
|
git apply -3 ../0001-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=(GFDL-1.1-or-later GPL-2.0-or-later)
|
|
|
|
sha256sums=(SKIP
|
|
fbb9d43c70b6816b6527e14676339685d0f41920f2d595048ca2f3e9193ae235) # 0001-Fix-tests.patch
|
|
|
|
## fdb8209699f1fd53d57dadb2f2be9ba8b598d9bff06f3bb9cad8b5c3fa3a7b6b gtk-doc-1.34.0-01-x86_64.pkg.tar.lz
|
|
|