summaryrefslogtreecommitdiff
path: root/pandoc-bin/PKGBUILD
diff options
context:
space:
mode:
authormoxie <moxie.git@posteo.net>2026-02-02 16:57:44 +0000
committermoxie <moxie.git@posteo.net>2026-02-02 16:57:44 +0000
commitc923ab512290ff77436fbccb19a6a6ebbccc9476 (patch)
tree183d0d0f9e472633ab3ecfb66d27131d942c34b9 /pandoc-bin/PKGBUILD
init
Diffstat (limited to 'pandoc-bin/PKGBUILD')
-rw-r--r--pandoc-bin/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/pandoc-bin/PKGBUILD b/pandoc-bin/PKGBUILD
new file mode 100644
index 0000000..3117dcc
--- /dev/null
+++ b/pandoc-bin/PKGBUILD
@@ -0,0 +1,44 @@
+pkgname=pandoc-bin
+pkgver=3.8.3
+pkgrel=1
+pkgdesc="Conversion between documentation formats"
+url="https://pandoc.org"
+license=("GPL-2.0-or-later")
+arch=('x86_64' 'aarch64')
+conflicts=("pandoc-cli")
+provides=("pandoc=$pkgver" "pandoc-cli=$pkgver")
+optdepends=(
+ 'pandoc-crossref: for numbering figures, equations, tables and cross-references to them with pandoc-crossref filter'
+ 'texlive-context: for pdf output using context engine'
+ 'groff: for pdf output using pdfroff engine'
+ 'python-weasyprint: for pdf output using weasyprint engine'
+ 'typst: for pdf output using typst engine'
+ 'tectonic: for pdf output using tectonic engine'
+ 'texlive-fontsrecommended: for pdf output using latex or xelatex engines'
+ 'texlive-latex: for pdf output using pdflatex engine'
+ 'texlive-xetex: for pdf output using xelatex engine'
+)
+
+options=("!debug")
+
+# The binary release doesn't have the datafiles, so we need to yoink those out of the source tarball, too.
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jgm/pandoc/archive/${pkgver}.tar.gz")
+source_x86_64=("https://github.com/jgm/pandoc/releases/download/${pkgver}/pandoc-${pkgver}-linux-amd64.tar.gz")
+source_aarch64=("https://github.com/jgm/pandoc/releases/download/${pkgver}/pandoc-${pkgver}-linux-arm64.tar.gz")
+
+sha256sums=('064775f55802fea443c53b9ad61b6af5aab3fcda71c40e8ccb97f650dce78640')
+sha256sums_x86_64=('c224fab89f827d3623380ecb7c1078c163c769c849a14ac27e8d3bfbb914c9b4')
+sha256sums_aarch64=('166a5a37387eb10bd4c4f242a8109beef755ac1e8d4eb039c6b5ebd1d918d8d7')
+
+package() {
+ cd "${srcdir}/pandoc-${pkgver}"
+
+ mkdir -p "${pkgdir}/usr/share/pandoc"
+ cp -R bin share "${pkgdir}/usr"
+ cp -R data citeproc "${pkgdir}/usr/share/pandoc/"
+ cp COPYRIGHT MANUAL.txt "${pkgdir}/usr/share/pandoc/"
+ bin/pandoc --bash-completion | \
+ install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pandoc
+}
+
+# vim: set ts=2 sw=2 et