jobextra/doxygen/PKGBUILD

76 lines
2.1 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 |---------------------------------------
#pkgbase=doxygen
#pkgname=('doxygen' 'doxygen-docs')
pkgname=doxygen
pkgver=1.9.6
pkgrel=01
pkgdesc='Documentation system for C++, C, Java, IDL and PHP'
url='http://www.doxygen.nl'
arch=('x86_64')
makedepends=('cmake' 'gcc-libs' 'flex' 'qt5-base' 'texlive-core' 'ghostscript'
'texlive-latexextra' 'graphviz' 'python' 'git')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/doxygen/doxygen/archive/Release_${pkgver//./_}.tar.gz)
prepare() {
cd ${pkgname}-Release_${pkgver//./_}
# Install the man pages in the right place
sed -i 's:DESTINATION man/man1:DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man1":g' \
doc/CMakeLists.txt
}
build() {
cd ${pkgname}-Release_${pkgver//./_}
cmake -B build \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DDOC_INSTALL_DIR:PATH=share/doc/doxygen \
-DPYTHON_EXECUTABLE:FILE=/usr/bin/python \
-Dbuild_doc:BOOL=OFF \
-Dbuild_wizard:BOOL=ON
make -C build
export CAIRO_DEBUG_PDF=1 # https://github.com/doxygen/doxygen/issues/9319
# make -C build docs -j1
}
check() {
cd ${pkgname}-Release_${pkgver//./_}
make -C build tests
}
#package_doxygen() {
package() {
pkgdesc='Documentation system for C++, C, Java, IDL and PHP'
depends=('gcc-libs')
optdepends=('graphviz: for caller/callee graph generation'
'qt5-base: for doxywizard')
cd ${pkgname}-Release_${pkgver//./_}
make -C build DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}/usr/share/doc"
}
#package_doxygen-docs() {
# pkgdesc='Developer documentation for doxygen'
#
# cd ${pkgbase}-Release_${pkgver//./_}
# make -C build DESTDIR="${pkgdir}" install
#
# rm -rf "${pkgdir}/usr/bin"
# rm -rf "${pkgdir}/usr/share/man"
#}
#---- license gpg-key sha256sums ----
license=('GPL')
sha256sums=(2a3ee47f7276b759f74bac7614c05a1296a5b028d3f6a79a88e4c213db78e7dc) # doxygen-1.9.6.tar.gz