summaryrefslogtreecommitdiff
path: root/~fauno/pandoc/SRCBUILD
diff options
context:
space:
mode:
Diffstat (limited to '~fauno/pandoc/SRCBUILD')
-rwxr-xr-x~fauno/pandoc/SRCBUILD15
1 files changed, 9 insertions, 6 deletions
diff --git a/~fauno/pandoc/SRCBUILD b/~fauno/pandoc/SRCBUILD
index 29c5f25ae..ebe1a0552 100755
--- a/~fauno/pandoc/SRCBUILD
+++ b/~fauno/pandoc/SRCBUILD
@@ -2,14 +2,17 @@
# Based on haskell-pandoc
pkgname=pandoc
-pkgver=1.9.4.2
-pkgrel=2
+pkgver=1.9.4.5
+# 0.3.6 fails with embed_data_files
+_citeproc=0.3.5
+pkgrel=3
pkgdesc='Conversion between markup formats (no Haskell libs)'
url='http://johnmacfarlane.net/pandoc/'
license=('GPL')
arch=('any')
makedepends=('ghc' 'sh' 'cabal-install')
source=()
+options=(!strip)
# PKGBUILD functions
build() {
@@ -20,22 +23,22 @@ build() {
cabal --verbose=3 update
HOME=${srcdir}/${pkgname}-${pkgver} \
- cabal --verbose=3 fetch file-embed ${pkgname}-${pkgver}
+ cabal --verbose=3 fetch file-embed citeproc-hs-${_citeproc} ${pkgname}-${pkgver}
msg2 "Getting the dependency build order"
# Ignore the cabal messages
HOME=${srcdir}/${pkgname}-${pkgver} \
- cabal install --dry-run file-embed ${pkgname}-${pkgver} | tail -n+3 >> BUILDORDER
+ cabal install --dry-run file-embed citeproc-hs-${_citeproc} ${pkgname}-${pkgver} | grep "\-[0-9]\+" >>BUILDORDER
}
package() {
export PKGEXT=.src.tar.xz
- export PKGDEST=${startdir}
+ export PKGDEST=${SRCDEST}
mkdir -p ${pkgdir}/${pkgname}-${pkgver}
cd ${pkgdir}/${pkgname}-${pkgver}
- find ${srcdir} -iname '*.tar.?z' -a \! -iname '00-index.tar.gz' -exec \
+ find ${srcdir}/${pkgname}-${pkgver} -iname '*.tar.?z' -a \! -iname '00-index.tar.gz' -exec \
bsdtar xvf '{}' \;
cp ${srcdir}/${pkgname}-${pkgver}/BUILDORDER .