Source: wkgtk-html2pdf
Section: utils
Priority: optional
Vcs-Browser: https://github.com/TimH1970/wkgtk-html2pdf
Vcs-Git: https://github.com/TimH1970/wkgtk-html2pdf.git
Maintainer: James Hothersall <james@wkgtk-html2pdf.com>
Homepage: https://wkgtk-html2pdf.com
Build-Depends: debhelper-compat (= 13),
	libwebkit2gtk-4.1-dev,
	libwebkitgtk-6.0-dev,
	libpodofo-dev,
	libjson-c-dev,
	pkgconf,
	libsystemd-dev,
	libx11-dev,
	libwayland-dev
Standards-Version: 4.7.2

# --- THE COMMON ASSETS (The "Interface" and Shared State) ---
Package: wkgtk-html2pdf-common
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}, xvfb, systemd, adduser
Description: Professional headless HTML-to-PDF engine (common files)
	This package provides the engine-agnostic assets, templates, and
	systemd service units required for the wkgtk-html2pdf suite.

# --- THE CLI TOOL ---
Package: wkgtk-html2pdf
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
	wkgtk-html2pdf-common (= ${source:Version}),
	libwk2gtkpdf-6-1 | libwk2gtkpdf-4-1
Description: Professional headless HTML-to-PDF engine (CLI tool)
	A modern, feature-rich replacement for wkhtmltopdf built on WebKit.
	This command-line utility provides high-fidelity PDF generation with
	advanced features for professional document automation.

# --- THE GTK3 ENGINE ---
Package: libwk2gtkpdf-4-1
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}, wkgtk-html2pdf-common (= ${source:Version})
Provides: libwk2gtkpdf-engine
Description: WebKit-based HTML to PDF rendering library (GTK3 Engine)
	This package provides the legacy WebKit2GTK 4.1 (GTK3) implementation.
	It bridges the gap between modern WebKit rendering and
	fixed-layout PDF requirements.

# --- THE GTK4 ENGINE ---
Package: libwk2gtkpdf-6-1
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}, wkgtk-html2pdf-common (= ${source:Version})
Provides: libwk2gtkpdf-engine
Description: WebKit-based HTML to PDF rendering library (GTK4 Engine)
	This package provides the modern WebKitGTK 6.0 (GTK4) implementation.
	allowing utilisation of the library from within GTK4 applications.

# --- THE DEVELOPMENT HEADERS ---
Package: libwk2gtkpdf-dev
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libwk2gtkpdf-6-1 (>= ${source:Version}) | libwk2gtkpdf-4-1 (>= ${source:Version}),
	${misc:Depends}
Description: WebKit-based HTML to PDF rendering library (development files)
	This package provides the C++ API for the wkgtk-html2pdf engine.
	Includes support for both GTK3 and GTK4 engines via Pimpl isolation.
