@@ -14,27 +14,24 @@ DIST=`pwd`/$BASE
14DEST=$DIST/usr
14DEST=$DIST/usr
15ME=$(whoami)
15ME=$(whoami)
16COPYRIGHT=$DEST/share/doc/pandoc/copyright
16COPYRIGHT=$DEST/share/doc/pandoc/copyright
17−TEMPDIR=make_binary_package.tmp.$$
19# We need this for hsb2hs:
18# We need this for hsb2hs:
20PATH=$LOCAL/bin:$PATH
19PATH=$LOCAL/bin:$PATH
22+mkdir -p $DEST/share/man/man1
23+mkdir -p $DEST/share/doc/pandoc
22stack install --install-ghc --stack-yaml deb/stack.yaml --local-bin-path . hsb2hs
25stack install --install-ghc --stack-yaml deb/stack.yaml --local-bin-path . hsb2hs
23stack install --install-ghc --stack-yaml deb/stack.yaml --local-bin-path . pandoc pandoc-citeproc
26stack install --install-ghc --stack-yaml deb/stack.yaml --local-bin-path . pandoc pandoc-citeproc
25make man/pandoc.1
28make man/pandoc.1
26# get pandoc-citeproc man page:
29# get pandoc-citeproc man page:
27PANDOC_CITEPROC_VERSION=`pandoc-citeproc --version | awk '{print $2;}'`
30PANDOC_CITEPROC_VERSION=`pandoc-citeproc --version | awk '{print $2;}'`
28−PANDOC_CITEPROC_TARBALL=https://hackage.haskell.org/package/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}.tar.gz
31+curl https://raw.githubusercontent.com/jgm/pandoc-citeproc/${PANDOC_CITEPROC_VERSION}/man/man1/pandoc-citeproc.1 > $DEST/share/man/man1/pandoc-citeproc.1
30−curl ${PANDOC_CITEPROC_TARBALL} | tar xzC $TEMPDIR
31−PANDOC_CITEPROC_PATH=$TEMPDIR/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}
33strip deb/pandoc
33strip deb/pandoc
34strip deb/pandoc-citeproc
34strip deb/pandoc-citeproc
36−mkdir -p $DEST/share/man/man1
37−mkdir -p $DEST/share/doc/pandoc
39mkdir -p $DEST/share/doc/pandoc-citeproc
36mkdir -p $DEST/share/doc/pandoc-citeproc
40find $DIST -type d | xargs chmod 755
37find $DIST -type d | xargs chmod 755
@@ -42,13 +39,11 @@ cp deb/pandoc $DEST/bin/
42cp deb/pandoc-citeproc $DEST/bin/
39cp deb/pandoc-citeproc $DEST/bin/
43cp man/pandoc.1 $DEST/share/man/man1/pandoc.1
40cp man/pandoc.1 $DEST/share/man/man1/pandoc.1
44gzip -9 $DEST/share/man/man1/pandoc.1
41gzip -9 $DEST/share/man/man1/pandoc.1
45−cp ${PANDOC_CITEPROC_PATH}/man/man1/pandoc-citeproc.1 $DEST/share/man/man1/
46gzip -9 $DEST/share/man/man1/pandoc-citeproc.1
42gzip -9 $DEST/share/man/man1/pandoc-citeproc.1
47cp COPYRIGHT $COPYRIGHT
43cp COPYRIGHT $COPYRIGHT
48echo "" >> $COPYRIGHT
44echo "" >> $COPYRIGHT
49echo "pandoc-citeproc" >> $COPYRIGHT
45echo "pandoc-citeproc" >> $COPYRIGHT
50cat $PANDOC_CITEPROC_PATH/LICENSE >> $COPYRIGHT
46cat $PANDOC_CITEPROC_PATH/LICENSE >> $COPYRIGHT
53INSTALLED_SIZE=$(du -B 1024 -s $DEST | awk '{print $1}')
48INSTALLED_SIZE=$(du -B 1024 -s $DEST | awk '{print $1}')
54mkdir $DIST/DEBIAN
49mkdir $DIST/DEBIAN