mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
libraries/libmrss: Added (C RSS library).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
b66eb6ec33
commit
205166bc3d
5 changed files with 136 additions and 0 deletions
4
libraries/libmrss/README
Normal file
4
libraries/libmrss/README
Normal file
|
@ -0,0 +1,4 @@
|
|||
libmrss (C RSS library)
|
||||
|
||||
mRSS is a C library for parsing, writing and creating RSS
|
||||
(0.91, 0.92, 1.0, 2.0) files or streams.
|
24
libraries/libmrss/atom-link.diff
Normal file
24
libraries/libmrss/atom-link.diff
Normal file
|
@ -0,0 +1,24 @@
|
|||
Description: Fixes wrong <link> parsed is Atom feeds
|
||||
Debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503225
|
||||
|
||||
diff -Naur libmrss-0.19.2/src/mrss_parser.c libmrss-0.19.2.atom/src/mrss_parser.c
|
||||
--- libmrss-0.19.2/src/mrss_parser.c 2008-08-21 15:59:22.000000000 -0600
|
||||
+++ libmrss-0.19.2.atom/src/mrss_parser.c 2008-12-07 11:30:43.000000000 -0700
|
||||
@@ -367,7 +367,16 @@
|
||||
/* link href -> link */
|
||||
else if (!item->link && !strcmp (cur->value, "link")
|
||||
&& (c = nxmle_find_attribute (cur, "href", NULL)))
|
||||
- item->link = c;
|
||||
+ {
|
||||
+ char *t;
|
||||
+
|
||||
+ /* alternate link is either rel="alternate" or a link tag
|
||||
+ * without a rel attribute
|
||||
+ */
|
||||
+ t = nxmle_find_attribute (cur, "rel", NULL);
|
||||
+ if ((t && !strcmp(t, "alternate")) || !t)
|
||||
+ item->link = c;
|
||||
+ }
|
||||
|
||||
/* content -> description */
|
||||
else if (!item->description && !strcmp (cur->value, "content"))
|
79
libraries/libmrss/libmrss.SlackBuild
Normal file
79
libraries/libmrss/libmrss.SlackBuild
Normal file
|
@ -0,0 +1,79 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for libmrss
|
||||
|
||||
# Written by e20100633 <e20100633@inbox.lv>
|
||||
|
||||
PRGNAM=libmrss
|
||||
VERSION=0.19.2
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
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 {} \;
|
||||
|
||||
# Fix a bug with a patch from debian
|
||||
patch -p1 < $CWD/atom-link.diff
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--disable-static \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS COPYING ChangeLog NEWS README $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 -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
10
libraries/libmrss/libmrss.info
Normal file
10
libraries/libmrss/libmrss.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="libmrss"
|
||||
VERSION="0.19.2"
|
||||
HOMEPAGE="http://www2.autistici.org/bakunin/codes.php"
|
||||
DOWNLOAD="http://www2.autistici.org/bakunin/libmrss/libmrss-0.19.2.tar.gz"
|
||||
MD5SUM="a6f66b72898d27270e3a68007f90d62b"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="libnxml"
|
||||
MAINTAINER="e20100633"
|
||||
EMAIL="e20100633@inbox.lv"
|
19
libraries/libmrss/slack-desc
Normal file
19
libraries/libmrss/slack-desc
Normal file
|
@ -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 ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
libmrss: libmrss (C RSS library)
|
||||
libmrss:
|
||||
libmrss: mRSS is a C library for parsing, writing and creating RSS
|
||||
libmrss: (0.91, 0.92, 1.0, 2.0) files or streams.
|
||||
libmrss:
|
||||
libmrss: Homepage: http://www2.autistici.org/bakunin/codes.php
|
||||
libmrss:
|
||||
libmrss:
|
||||
libmrss:
|
||||
libmrss:
|
||||
libmrss:
|
Loading…
Reference in a new issue