contrib/pandoc-bin/Pkgfile

24 lines
677 B
Plaintext
Raw Normal View History

2019-06-11 23:45:48 +02:00
# Description: Conversion between markup formats, "Bin"-Edition
2020-06-01 17:45:48 +02:00
# URL: https://pandoc.org
2019-06-11 23:45:48 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: cmark
2020-10-12 17:23:12 +02:00
# Optional: texlive
2019-06-11 23:45:48 +02:00
name=pandoc-bin
2022-08-29 21:02:53 +02:00
version=2.19.2
2019-06-11 23:45:48 +02:00
release=1
2019-11-23 17:40:54 +01:00
source=(https://github.com/jgm/pandoc/releases/download/$version/pandoc-$version-linux-amd64.tar.gz
2020-10-12 17:23:12 +02:00
https://github.com/jgm/pandoc/archive/$version/pandoc-$version.tar.gz)
2019-06-11 23:45:48 +02:00
build() {
2020-10-12 17:23:12 +02:00
cd pandoc-$version
mkdir -p $PKG/usr/share/pandoc
cp -R bin share $PKG/usr
2019-06-11 23:45:48 +02:00
2020-10-12 17:23:12 +02:00
cp -R data $PKG/usr/share/pandoc
find $PKG -iname '*README*' -delete
find $PKG/usr/share/pandoc/data/translations \(\
-not -type d \
-not -name en.yaml \) -exec rm '{}' \+
2019-06-11 23:45:48 +02:00
}