diff options
author | slakmagik <jsun@freeshell.org> | 2010-05-11 20:01:39 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 20:01:39 +0200 |
commit | 574b4d8305ea176e481f7ef5e4baa565df6ecc99 (patch) | |
tree | 7f3da0caacc86e1b81710a79bdbed88bcd3537ce /network | |
parent | 576ab66adb85fd44454f434c047b96e6ace961be (diff) |
network/newsbeuter: Added to 12.0 repository
Diffstat (limited to 'network')
-rw-r--r-- | network/newsbeuter/README | 16 | ||||
-rw-r--r-- | network/newsbeuter/newsbeuter.SlackBuild | 79 | ||||
-rw-r--r-- | network/newsbeuter/newsbeuter.info | 8 | ||||
-rw-r--r-- | network/newsbeuter/slack-desc | 19 |
4 files changed, 122 insertions, 0 deletions
diff --git a/network/newsbeuter/README b/network/newsbeuter/README new file mode 100644 index 0000000000000..393f3463fdb25 --- /dev/null +++ b/network/newsbeuter/README @@ -0,0 +1,16 @@ +This is the README for the SlackBuild for the Newsbeuter RSS feedreader. + +Newsbeuter is an RSS feedreader. RSS is a number of widely-used +XML formats to transmit, publish and syndicate articles, for +example news or blog articles. Newsbeuter is designed to be used +on text terminals on Unix or Unix-like systems such as Linux, +BSD or Mac OS X. + +You will need to have stfl and sqlite (from SlackBuilds.org) installed to +build this, and swig is an optional dependency if you want ruby scripting +support. Note that stfl will need to have been built with swig installed +(from SlackBuilds.org) as well if you want the additional ruby scripting +support. However, the author of the script has been unsuccessful in getting +ruby scripting support to build; there is a variable in the build script +to enable, so if you have any luck, please notify the maintainer listed in +the newsbeuter.info file. diff --git a/network/newsbeuter/newsbeuter.SlackBuild b/network/newsbeuter/newsbeuter.SlackBuild new file mode 100644 index 0000000000000..0fb4ccd19a866 --- /dev/null +++ b/network/newsbeuter/newsbeuter.SlackBuild @@ -0,0 +1,79 @@ +#!/bin/sh + +# Slackware build script for newsbeuter +# Written by slakmagik <jsun@freeshell.org> +# Released under the WTFPL + +PRGNAM=newsbeuter +VERSION=0.8.2 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +# Pass "yes" as the value to ENABLE_SWIG on the command line when executing +# this script if you have swig and ruby and want the ruby scripting support +# and are willing to figure out why the build fails with ruby/swig enabled +ENABLE_SWIG=${ENABLE_SWIG:-no} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 \ + -o -perm 400 \) -exec chmod 644 {} \; + +# This ugly thing is because the Makefile/config.sh scripts check for ruby but +# fail to check for swig and the build bombs if ruby is enabled and swig isn't +# there. Of course, it fails even if ruby is enabled and swig *is* there, but +# that's a different story. +if [ "$ENABLE_SWIG" == "no" ]; then + sed -i~ 's/if find_rubyflags/if false/' config.sh +fi + +# It would be nice to use $(mandir) here, but the Makefile doesn't use it +# consistently. Rather than sed yet another file, we'll just move the man page. +CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" \ + prefix=/usr docdir=/usr/doc/$PRGNAM-$VERSION make + +make prefix=$PKG/usr docdir=$PKG/usr/doc/$PRGNAM-$VERSION install + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | + xargs strip --strip-unneeded 2> /dev/null +) + +mv $PKG/usr/share/man $PKG/usr/man +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done +) + +cp -a [ACLRT]* $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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.tgz diff --git a/network/newsbeuter/newsbeuter.info b/network/newsbeuter/newsbeuter.info new file mode 100644 index 0000000000000..93f289d1ecc23 --- /dev/null +++ b/network/newsbeuter/newsbeuter.info @@ -0,0 +1,8 @@ +PRGNAM="newsbeuter" +VERSION="0.8.2" +HOMEPAGE="http://synflood.at/newsbeuter.html" +DOWNLOAD="http://synflood.at/newsbeuter/newsbeuter-0.8.2.tar.gz" +MD5SUM="403891c24d999206d57b33ee630c42b3" +MAINTAINER="slakmagik" +EMAIL="jsun@freeshell.org" +APPROVED="David Somero" diff --git a/network/newsbeuter/slack-desc b/network/newsbeuter/slack-desc new file mode 100644 index 0000000000000..a8d261b9ab206 --- /dev/null +++ b/network/newsbeuter/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +newsbeuter: Newsbeuter (RSS feedreader) +newsbeuter: +newsbeuter: Newsbeuter is an RSS feedreader. RSS is a number of widely-used +newsbeuter: XML formats to transmit, publish and syndicate articles, for +newsbeuter: example news or blog articles. Newsbeuter is designed to be used +newsbeuter: on text terminals on Unix or Unix-like systems such as Linux, +newsbeuter: BSD or Mac OS X. +newsbeuter: +newsbeuter: Homepage: http://synflood.at/newsbeuter/newsbeuter.html +newsbeuter: +newsbeuter: |