blob: 1a0240633b82e86f815cf4ad2b85f316bab922c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
pkgname=pandoc-bin
pkgver=3.6
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'
)
# 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=('9e5dcca8a8a0a24742138cb95c6e8c125dfedfda0c004d28ae2c9fdd297cf699')
sha256sums_x86_64=('8e3702b195f75412e425df46f8f3f08241b66a2b33abbd9e04eda501bfde860c')
sha256sums_aarch64=('4377731a0c896193aeab75734fd5965c21232638fde117f30e4d591700405e0f')
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/"
}
# vim: set ts=2 sw=2 et
|