summaryrefslogtreecommitdiffstats
path: root/office/pandoc/pandoc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/pandoc/pandoc.SlackBuild')
-rw-r--r--office/pandoc/pandoc.SlackBuild21
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