pkgname=pandoc-bin pkgver=2.19.2 pkgrel=1 pkgdesc="Pandoc - executable only, without 750MB Haskell depends/makedepends" url="https://pandoc.org" license=("GPLv2+") arch=('x86_64' 'aarch64') conflicts=("pandoc") provides=("pandoc=$pkgver") optdepends=('texlive-core: for pdf output') # The binary release doesn't have the datafiles, so we need to yoink those out of the source tarball, too. source=("$pkgname-source-$pkgver.tar.gz::https://github.com/jgm/pandoc/archive/${pkgver}.tar.gz") source_x86_64=("$pkgname-bin-$pkgver.tar.gz::https://github.com/jgm/pandoc/releases/download/${pkgver}/pandoc-${pkgver}-linux-amd64.tar.gz") source_aarch64=("$pkgname-bin-$pkgver.tar.gz::https://github.com/jgm/pandoc/releases/download/${pkgver}/pandoc-${pkgver}-linux-arm64.tar.gz") sha256sums=('5cebed5bfa8daa8c3f7ba0c29b0c84b36fd279bdcd25891d3ae9843fa2c98592') sha256sums_x86_64=('9d55c7afb6a244e8a615451ed9cb02e6a6f187ad4d169c6d5a123fa74adb4830') sha256sums_aarch64=('43f364915b9da64905fc3f6009f5542f224e54fb24f71043ef5154540f1a3983') package() { cd "${srcdir}/pandoc-${pkgver}" # To avoid having to download over a gigabyte of haskell makedepends (400-ish for ghc, plus 750 in libs), we # just yoink the binary from static compiled binary distributed by pandoc: mkdir -p "${pkgdir}/usr/share/pandoc" cp -R bin share "${pkgdir}/usr" # We're still missing all the datafiles and so on. We get those from the source tarball... cp -R data "${pkgdir}/usr/share/pandoc/" cp COPYRIGHT MANUAL.txt "${pkgdir}/usr/share/pandoc/" }