diff options
Diffstat (limited to 'libraries/cmark/cmark.SlackBuild')
-rw-r--r-- | libraries/cmark/cmark.SlackBuild | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/libraries/cmark/cmark.SlackBuild b/libraries/cmark/cmark.SlackBuild index 135802e19c..bea6d48120 100644 --- a/libraries/cmark/cmark.SlackBuild +++ b/libraries/cmark/cmark.SlackBuild @@ -1,7 +1,8 @@ #!/bin/sh # Slackware build script for cmark -# Copyright 2018 Skaendo <skaendo at excite dot com> + +# Copyright 2018 Skaendo <skaendo@linuxmail.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -10,7 +11,7 @@ # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, @@ -23,7 +24,7 @@ PRGNAM=cmark VERSION=${VERSION:-0.28.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -66,7 +67,7 @@ find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; mkdir build cd build @@ -75,16 +76,12 @@ cd build -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DMAN_INSTALL_DIR=/usr/man \ + -DCMAKE_INSTALL_MANDIR=/usr/man \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG cd .. -# Move manpages to a sane directory -cp -vr $PKG/usr/share/man $PKG/usr -rm -rf $PKG/usr/share - find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -92,7 +89,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING README.md *.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING README.md changelog.txt \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |