summaryrefslogtreecommitdiff
path: root/libraries/cmark
diff options
context:
space:
mode:
authorSkaendo <skaendo@linuxmail.org>2018-07-06 23:04:24 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2018-07-06 23:08:22 +0100
commitb10e56dd046c5782b28e3dc32a434fd9132637d6 (patch)
tree29722589f5e0a26385b63c411e27d45ded247237 /libraries/cmark
parent2dc18cf6b94fa33d281a7c3dcc66f79212fc368f (diff)
downloadslackbuilds-b10e56dd046c5782b28e3dc32a434fd9132637d6.tar.gz
libraries/cmark: Fix man directory, update maintainer email.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/cmark')
-rw-r--r--libraries/cmark/cmark.SlackBuild18
-rw-r--r--libraries/cmark/cmark.info2
2 files changed, 9 insertions, 11 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
diff --git a/libraries/cmark/cmark.info b/libraries/cmark/cmark.info
index b3f03ff694..3c5f909ea7 100644
--- a/libraries/cmark/cmark.info
+++ b/libraries/cmark/cmark.info
@@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Skaendo"
-EMAIL="skaendo at excite dot com"
+EMAIL="skaendo@linuxmail.org"