diff options
Diffstat (limited to 'network/sfeed')
-rw-r--r-- | network/sfeed/README | 4 | ||||
-rw-r--r-- | network/sfeed/README.SLACKWARE | 8 | ||||
-rw-r--r-- | network/sfeed/sfeed.SlackBuild | 29 | ||||
-rw-r--r-- | network/sfeed/sfeed.info | 12 |
4 files changed, 28 insertions, 25 deletions
diff --git a/network/sfeed/README b/network/sfeed/README index 8214d5bc45..b1d49f1024 100644 --- a/network/sfeed/README +++ b/network/sfeed/README @@ -1,5 +1,5 @@ -SFeed is a simple RSS and Atom parser. +Sfeed is a simple RSS and Atom parser. README.SLACKWARE contains starter tips. -/usr/doc/sfeed-0.9.14/README contains detailed post-install +/usr/doc/sfeed-*/README contains detailed post-install instructions. diff --git a/network/sfeed/README.SLACKWARE b/network/sfeed/README.SLACKWARE index 8c524c6281..8b2309ed20 100644 --- a/network/sfeed/README.SLACKWARE +++ b/network/sfeed/README.SLACKWARE @@ -1,17 +1,15 @@ -The following instructions are taken from /usr/doc/sfeed-0.9.14/README -Note that the slackbuild removes /usr/share/doc/sfeed; thus, please -copy necessary files from /usr/doc/sfeed-0.9.14 +The following instructions are taken from /usr/doc/sfeed-*/README - Initialize sfeed folders: mkdir -p "$HOME/.sfeed/feeds" - Initialize sfeedrc, such as by copying and editing the example file: -cp /usr/doc/sfeed-0.9.14/sfeedrc.example "$HOME/.sfeed/sfeedrc" +cp /usr/doc/sfeed-*/sfeedrc.example "$HOME/.sfeed/sfeedrc" $EDITOR "$HOME/.sfeed/sfeedrc" - Update feeds: sfeed_update - Format feeds. For example, view feeds in HTML (no frames). -cp /usr/doc/sfeed-0.9.14/style.css "$HOME/.sfeed/style.css" +cp /usr/doc/sfeed-*/style.css "$HOME/.sfeed/style.css" sfeed_html $HOME/.sfeed/feeds/* > "$HOME/.sfeed/feeds.html" diff --git a/network/sfeed/sfeed.SlackBuild b/network/sfeed/sfeed.SlackBuild index 6f3a6d9b6a..2dac8c1bd4 100644 --- a/network/sfeed/sfeed.SlackBuild +++ b/network/sfeed/sfeed.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for sfeed -# Copyright 2019 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2019-2023 Isaac Yu <isaacyu@protonmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=sfeed -VERSION=${VERSION:-0.9.14} +VERSION=${VERSION:-2.0} BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +38,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -63,25 +70,23 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ +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 {} \; make -make install PREFIX=/usr DESTDIR=$PKG +make install PREFIX=/usr MANPREFIX=/usr/man DOCPREFIX=/usr/doc/sfeed-$VERSION DESTDIR=$PKG 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 -# Redundant directory -rm -r $PKG/usr/share/doc/sfeed - 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 LICENSE README README.xml sfeedrc.example style.css $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE @@ -89,4 +94,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/sfeed/sfeed.info b/network/sfeed/sfeed.info index 3dab71971c..37a9bc739e 100644 --- a/network/sfeed/sfeed.info +++ b/network/sfeed/sfeed.info @@ -1,10 +1,10 @@ PRGNAM="sfeed" -VERSION="0.9.14" -HOMEPAGE="https://codemadness.org/releases/sfeed/" -DOWNLOAD="https://codemadness.org/releases/sfeed/sfeed-0.9.14.tar.gz" -MD5SUM="5a7e1388a06f3ba233e479fe3c697ac5" +VERSION="2.0" +HOMEPAGE="https://codemadness.org/sfeed-simple-feed-parser.html" +DOWNLOAD="https://codemadness.org/releases/sfeed/sfeed-2.0.tar.gz" +MD5SUM="02f0af9a09782d3b5a66c34d3e7b0a7b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Isaac Yu" -EMAIL="isaacyu1@isaacyu1.com" +MAINTAINER="Hiltjo Posthuma" +EMAIL="hiltjo@codemadness.org" |