From 5834d2b42fe99177c644f5a23eb3236604676f25 Mon Sep 17 00:00:00 2001 From: Isaac Yu Date: Thu, 9 May 2019 23:36:09 +0700 Subject: [PATCH] network/sfeed: Update script. Signed-off-by: Willy Sudiarto Raharjo --- network/sfeed/README | 2 +- network/sfeed/README.SLACKWARE | 8 +++++--- network/sfeed/sfeed.SlackBuild | 7 +++++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/network/sfeed/README b/network/sfeed/README index 42b7b1d7ea..12a6ed64ff 100644 --- a/network/sfeed/README +++ b/network/sfeed/README @@ -1,5 +1,5 @@ SFeed is a simple RSS and Atom parser. README.SLACKWARE contains starter tips. -/usr/share/doc/sfeed/README contains detailed post-install +/usr/doc/sfeed-0.9.9/README contains detailed post-install instructions. diff --git a/network/sfeed/README.SLACKWARE b/network/sfeed/README.SLACKWARE index 7930098be7..30f6a8568f 100644 --- a/network/sfeed/README.SLACKWARE +++ b/network/sfeed/README.SLACKWARE @@ -1,15 +1,17 @@ -The following instructions are taken from /usr/share/doc/sfeed/README: +The following instructions are taken from /usr/doc/sfeed-0.9.9/README +Note that the slackbuild removes /usr/share/doc/sfeed; thus, please +copy necessary files from /usr/doc/sfeed-0.9.9 - Initialize sfeed folders: mkdir -p "$HOME/.sfeed/feeds" - Initialize sfeedrc, such as by copying and editing the example file: -cp /usr/share/doc/sfeed/sfeedrc.example "$HOME/.sfeed/sfeedrc" +cp /usr/doc/sfeed-0.9.9/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/share/doc/sfeed/style.css "$HOME/.sfeed/style.css" +cp /usr/doc/sfeed-0.9.9/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 883b760c20..3327a60d8a 100644 --- a/network/sfeed/sfeed.SlackBuild +++ b/network/sfeed/sfeed.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=sfeed VERSION=${VERSION:-0.9.9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -78,8 +78,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr 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 +# Redundant directory +rm -r $PKG/usr/share/doc/sfeed + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README README.xml $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README README.xml sfeedrc.example style.css $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