5 x86_64) ARCHITECTURE=amd64;;
6 i686) ARCHITECTURE=i386;;
7 i386) ARCHITECTURE=i386;;
11VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')
13DEBVER=$VERSION-$DEBPKGVER
14BASE=pandoc-$DEBVER-$ARCHITECTURE
18COPYRIGHT=$DEST/share/doc/pandoc/copyright
19TEMPDIR=make_binary_package.tmp.$$
21# We need this for hsb2hs:
26which hsb2hs || stack install --stack-yaml stack.hsb2hs.yaml
28stack install --stack-yaml deb/stack.yaml
31# get pandoc-citeproc man page:
32PANDOC_CITEPROC_VERSION=`pandoc-citeproc --version | awk '{print $2;}'`
33PANDOC_CITEPROC_TARBALL=https://hackage.haskell.org/package/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}.tar.gz
35curl ${PANDOC_CITEPROC_TARBALL} | tar xzC $TEMPDIR
36PANDOC_CITEPROC_PATH=$TEMPDIR/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}
38strip $LOCAL/bin/pandoc
39strip $LOCAL/bin/pandoc-citeproc
41mkdir -p $DEST/share/man/man1
42mkdir -p $DEST/share/doc/pandoc
44mkdir -p $DEST/share/doc/pandoc-citeproc
45find $DIST -type d | xargs chmod 755
46cp $LOCAL/bin/pandoc $DEST/bin/
47cp $LOCAL/bin/pandoc-citeproc $DEST/bin/
48cp man/pandoc.1 $DEST/share/man/man1/pandoc.1
49gzip -9 $DEST/share/man/man1/pandoc.1
50cp ${PANDOC_CITEPROC_PATH}/man/man1/pandoc-citeproc.1 $DEST/share/man/man1/
51gzip -9 $DEST/share/man/man1/pandoc-citeproc.1
52cp COPYRIGHT $COPYRIGHT
54echo "pandoc-citeproc" >> $COPYRIGHT
55cat $PANDOC_CITEPROC_PATH/LICENSE >> $COPYRIGHT
58INSTALLED_SIZE=$(du -B 1024 -s $DEST | awk '{print $1}')
60perl -pe "s/VERSION/$DEBVER/" deb/control.in | \
61 perl -pe "s/ARCHITECTURE/$ARCHITECTURE/" | \
62 perl -pe "s/INSTALLED_SIZE/$INSTALLED_SIZE/" \
63 > $DIST/DEBIAN/control
65fakeroot dpkg-deb --build $DIST
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list