diff options
author | David Spencer <baildon.research@googlemail.com> | 2018-10-27 12:26:21 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-11-10 07:47:58 +0700 |
commit | 293bff17e77ef8f635430cc5516c4dd70b8f8a96 (patch) | |
tree | e7b6407f9116f3802d7ee3699b8bc5ab6784b66a /office/pandoc/pandoc.SlackBuild | |
parent | 011fe97efa286d8671fa0b0419cf33a028b95df2 (diff) | |
download | slackbuilds-293bff17e77ef8f635430cc5516c4dd70b8f8a96.tar.gz |
office/pandoc: Updated for version 2.3.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'office/pandoc/pandoc.SlackBuild')
-rw-r--r-- | office/pandoc/pandoc.SlackBuild | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/office/pandoc/pandoc.SlackBuild b/office/pandoc/pandoc.SlackBuild index 06fa5d3b7f..e282b04ef5 100644 --- a/office/pandoc/pandoc.SlackBuild +++ b/office/pandoc/pandoc.SlackBuild @@ -4,9 +4,10 @@ # Written by Peter Wang <novalazy@gmail.com> # Public domain. +# Updated 2018 David Spencer, Baildon, West Yorkshire, U.K. PRGNAM=pandoc -VERSION=${VERSION:-1.17.0.3} +VERSION=${VERSION:-2.3.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -57,8 +58,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Accept haskell-data-default 0.6 -- Arch does this, so it must be ok :p -sed -i -e 's/data-default >= 0.4 \&\& < 0.6,/data-default >= 0.4 \&\& < 0.7,/' $PRGNAM.cabal +# Remove upper version constraint on haddock-library +sed -i -E 's/(haddock-library *>= *[0-9.]+ *)\&\& *<=? *[0-9.]+/\1/' $PRGNAM.cabal # --enable-executable-dynamic seems to only add the build directory to the # rpath but not /usr/lib*/ghc-*/pandoc-*, so libHSpandoc cannot be loaded if @@ -66,10 +67,12 @@ sed -i -e 's/data-default >= 0.4 \&\& < 0.6,/data-default >= 0.4 \&\& < 0.7,/' $ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ runghc Setup.hs configure \ - --prefix=/usr \ - --libdir=/usr/lib$LIBDIRSUFFIX \ - --libsubdir=ghc-$GHC_VERSION/$PRGNAM-$VERSION \ - --docdir=/usr/doc/$PRGNAM-$VERSION + --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX \ + --libsubdir=ghc-$GHC_VERSION/$PRGNAM-$VERSION \ + --enable-shared \ + --enable-library-profiling \ + --docdir=/usr/doc/$PRGNAM-$VERSION runghc Setup.hs build runghc Setup.hs haddock @@ -88,12 +91,12 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - BUGS changelog CONTRIBUTING.md COPYING COPYRIGHT README \ + AUTHORS.md BUGS changelog CONTRIBUTING.md COPYING.md COPYRIGHT MANUAL.txt README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # Remove duplicate files in usr/share/$ARCH-linux-ghc-$GHC_VERSION/$PRGNAM-$VERSION -rm $PKG/usr/share/$TARARCH-linux-ghc-$GHC_VERSION/$PRGNAM-$VERSION/{COPYRIGHT,README} +rm $PKG/usr/share/$TARARCH-linux-ghc-$GHC_VERSION/$PRGNAM-$VERSION/COPYRIGHT mkdir -p $PKG/install cat $CWD/doinst.sh > $PKG/install/doinst.sh |