aboutsummaryrefslogtreecommitdiff
path: root/development/md2roff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-09-11 16:28:23 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-17 00:10:35 +0700
commit8beee5615870d4081bbdb0efbd0f9d97edb4a182 (patch)
treea85e69846ffdbdb1ec03b47de29a70b362bae2d2 /development/md2roff
parenta02a056af8b9ef8f505e6e54eff8a5fa515dc78e (diff)
development/md2roff: Updated for version 1.11.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/md2roff')
-rw-r--r--development/md2roff/git2tarxz.sh2
-rw-r--r--development/md2roff/md2roff.SlackBuild33
-rw-r--r--development/md2roff/md2roff.info8
3 files changed, 28 insertions, 15 deletions
diff --git a/development/md2roff/git2tarxz.sh b/development/md2roff/git2tarxz.sh
index 600ac02b4d51..18da696d7585 100644
--- a/development/md2roff/git2tarxz.sh
+++ b/development/md2roff/git2tarxz.sh
@@ -12,7 +12,7 @@
# a bit weird.
PRGNAM=md2roff
-CLONE_URL=https://github.com/nereusx/md2roff
+CLONE_URL=https://codeberg.org/nereusx/md2roff
set -e
diff --git a/development/md2roff/md2roff.SlackBuild b/development/md2roff/md2roff.SlackBuild
index d4defa782355..c588bd325efc 100644
--- a/development/md2roff/md2roff.SlackBuild
+++ b/development/md2roff/md2roff.SlackBuild
@@ -6,10 +6,14 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230911 bkw: update for v1.11.
+# - new homepage, thanks to Tonus for finding it.
+# - upstream finally did a tagged release, yay!
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=md2roff
-VERSION=${VERSION:-1.10+20230125_adb5a2b}
+VERSION=${VERSION:-1.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -33,16 +37,12 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
fi
set -e
@@ -50,12 +50,20 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM
+
+# 20230911 bkw: we get 2 different filenames depending on whether the
+# Content-disposition header is respected by whatever downloads the file.
+# Handle either, without scary-looking error messages. Unlike github,
+# codeberg doesn't have a "magic" URL that works either way.
+TARBALL=$CWD/$PRGNAM-$VERSION.tar.gz
+[ -e "$TARBALL" ] || TARBALL=$CWD/$VERSION.tar.gz
+tar xvf $TARBALL
+
+cd $PRGNAM
chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
# Make the man page give the right directory for the PDF example:
patch -p1 < $CWD/manpage.diff
@@ -84,6 +92,11 @@ mkdir -p $PKGDOC
cp -a LICENSE* *.md *.pdf examples $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+# 20230911 bkw: the man and PDF docs claim that the generated man page
+# for md2roff.1 will be found in the documentation dir, so we'd better
+# include it there...
+ln -s ../../man/man1/$PRGNAM.1.gz $PKGDOC/$PRGNAM.1.gz
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/development/md2roff/md2roff.info b/development/md2roff/md2roff.info
index 02449b33e184..2140efc492d1 100644
--- a/development/md2roff/md2roff.info
+++ b/development/md2roff/md2roff.info
@@ -1,8 +1,8 @@
PRGNAM="md2roff"
-VERSION="1.10+20230125_adb5a2b"
-HOMEPAGE="https://github.com/nereusx/md2roff"
-DOWNLOAD="https://slackware.uk/~urchlay/src/md2roff-1.10+20230125_adb5a2b.tar.xz"
-MD5SUM="4c063834adc663881205781ab2a340ba"
+VERSION="1.11"
+HOMEPAGE="https://codeberg.org/nereusx/md2roff"
+DOWNLOAD="https://codeberg.org/nereusx/md2roff/archive/1.11.tar.gz"
+MD5SUM="4bcdad44558b993cecf52159005c4d7a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""