network/sfeed: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Isaac Yu 2019-05-09 23:36:09 +07:00 committed by Willy Sudiarto Raharjo
parent 46ab55059e
commit 5834d2b42f
3 changed files with 11 additions and 6 deletions

View file

@ -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.

View file

@ -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"

View file

@ -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