Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Maintainer: Yao Zi <[email protected]>

pkgbase=doxygen
pkgname=(doxygen doxywizard)
pkgver=1.15.0
_pkgver=${pkgver//./_}
pkgrel=1
pkgdesc='Tool for generating documentation from annotated sources'
url='https://www.doxygen.nl'
arch=(x86_64 aarch64 riscv64 loongarch64)
license=(GPL-2.0-or-later)
makedepends=(cmake clang llvm fmt spdlog sqlite qt6-base libglvnd llvm-devel
qt6-svg)
checkdepends=(perl python)
source=("https://github.com/doxygen/doxygen/archive/refs/tags/Release_$_pkgver.tar.gz")
sha256sums=('b2a79d92a934d4dcda2bb0006e65adbabfcfe83343e024d5f598ff3a62c23dda')

build() {
# TODO:
# doxysearch: missing Xapian
# docs: require tex
cmake -S "$pkgname-Release_$_pkgver" -B build \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-Dbuild_wizard=ON \
-Dbuild_parse=ON \
-Dbuild_search=OFF \
-Dbuild_doc=OFF \
-Duse_libclang=ON \
-Duse_sys_spdlog=ON \
-Duse_sys_fmt=ON \
-Duse_sys_sqlite3=ON \
-Dstatic_libclang=OFF \
-Denable_consoe=OFF \
-Denable_coverage=OFF \
-Denable_tracing=OFF \
-Denable_lex_debug=OFF \
-DENABLE_CLANG_TIDY=OFF

cmake --build build

DESTDIR="$srcdir/install" cmake --install build
cd "$srcdir/install"

_pick_ doxywizard usr/bin/doxywizard usr/share/man/man1/doxywizard.1
}

check() {
# 012_cite: Missing bibtex, skip it.
ctest --test-dir build -VV -E 012_cite
}

package_doxygen() {
depends=(musl llvm-libs llvm clang fmt graphviz spdlog sqlite)

mv "$srcdir"/install/* "$pkgdir"
}

package_doxywizard() {
pkgdesc="$pkgdesc (GUI frontend)"
depends=(musl llvm-libs libglvnd qt6-base qt6-svg doxygen="$pkgver")

mv "$srcdir"/pkgs/doxywizard/* "$pkgdir"
}