diff options
Diffstat (limited to 'system/info2man/info2man.SlackBuild')
-rw-r--r-- | system/info2man/info2man.SlackBuild | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/system/info2man/info2man.SlackBuild b/system/info2man/info2man.SlackBuild index 385cfd6ff8..54c56d52ca 100644 --- a/system/info2man/info2man.SlackBuild +++ b/system/info2man/info2man.SlackBuild @@ -6,8 +6,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. -# The version number below is the modification time of the newest file -# in the source tarball. +# 20201102 bkw: update for v1.1_9 (debian's 1.1-9) # 20140907 bkw: original site blocks downloads based on user-agent. Host # the src on my own server. Only the .info file changed, not the script, so @@ -15,7 +14,7 @@ # Original download link: http://www.cskk.ezoshosting.com/cs/css/info2man.tar.gz PRGNAM=info2man -VERSION=${VERSION:-20040717} +VERSION=${VERSION:-1.1_9} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -27,36 +26,46 @@ OUTPUT=${OUTPUT:-/tmp} set -e +# Trying to teach myself to use bash string stuff instead of echoing +# to 'cut' or whatever. But this is really hard to remember and read: +SRCVER=${VERSION%%_*} +DEBVER=${VERSION##*_} + PERLMODDIR=/usr/share/info2pod rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -mkdir -p $PRGNAM-$VERSION -cd $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM.tar.gz +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/${PRGNAM}_${SRCVER}.orig.tar.gz +cd $PRGNAM-$SRCVER +tar xvf $CWD/${PRGNAM}_${SRCVER}-${DEBVER}.debian.tar.xz chown -R root:root . -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 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ + +# Apply debian patches +for i in $( cat debian/patches/series); do + patch -p1 < debian/patches/$i +done -# make the script use its own private perl module dir, so we don't +# Make the script use its own private perl module dir, so we don't # pollute /usr/lib/perl5. sed -i -e '2iuse lib "'$PERLMODDIR'";' info2pod -# this uses an ancient Perl 4 module called flush.pl. The damn thing is less -# than 1KB in size, so I included it in the SlackBuild tarball. It came from -# here: http://www.opensource.apple.com/source/perl/perl-21/perl/lib/flush.pl - mkdir -p $PKG/usr/bin $PKG/$PERLMODDIR install -m0755 -oroot -groot $PRGNAM $PKG/usr/bin install -m0755 -oroot -groot info2pod $PKG/usr/bin -install -m0644 -oroot -groot $CWD/flush.pl $PKG/$PERLMODDIR cp -r cs $PKG/$PERLMODDIR/cs +# Include debian's man pages +mkdir -p $PKG/usr/man/man1 +gzip -9c < debian/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz +gzip -9c < debian/info2pod.1 > $PKG/usr/man/man1/info2pod.1.gz + +# 1.1_9 has 0README.txt, but it's mostly install instructions, +# plus a bunch of cruft culled from the original author's other +# projects. Don't bother. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |