mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/PyRSS2Gen: Added (python RSS feed generator)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
parent
a68aa4a82c
commit
3564bd44f4
4 changed files with 89 additions and 0 deletions
54
network/PyRSS2Gen/PyRSS2Gen.SlackBuild
Normal file
54
network/PyRSS2Gen/PyRSS2Gen.SlackBuild
Normal file
|
@ -0,0 +1,54 @@
|
|||
#!/bin/sh
|
||||
# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST
|
||||
# Copyright 2009-2010 Eric Hameleers, Eindhoven, Netherlands
|
||||
# Slackware build script for PyRSS2Gen
|
||||
# Written by Lionel Young <redtricycle@gmail.com>
|
||||
# Based on http://slackbuilds.org/template.SlackBuild
|
||||
|
||||
PRGNAM=PyRSS2Gen
|
||||
VERSION=${VERSION:-1.0.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) export ARCH=i486 ;;
|
||||
arm*) export ARCH=arm ;;
|
||||
*) export ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
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 {} \;
|
||||
|
||||
python setup.py build || exit 1
|
||||
python setup.py install --root=$PKG || exit 1
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
README LICENSE PKG-INFO \
|
||||
$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.${PKGTYPE:-tgz}
|
10
network/PyRSS2Gen/PyRSS2Gen.info
Normal file
10
network/PyRSS2Gen/PyRSS2Gen.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="PyRSS2Gen"
|
||||
VERSION="1.0.0"
|
||||
HOMEPAGE="http://www.dalkescientific.com/Python/PyRSS2Gen.html"
|
||||
DOWNLOAD="http://www.dalkescientific.com/Python/PyRSS2Gen-1.0.0.tar.gz"
|
||||
MD5SUM="b37ed0c9cfa4438a73dbbb0207f3aff6"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Lionel Young"
|
||||
EMAIL="redtricycle@gmail.com"
|
||||
APPROVED="Niels Horn"
|
6
network/PyRSS2Gen/README
Normal file
6
network/PyRSS2Gen/README
Normal file
|
@ -0,0 +1,6 @@
|
|||
PyRSS2Gen is a Python module that makes it easy to generate valid RSS
|
||||
feeds. You can use it to generate RSS feeds for web pages that don't
|
||||
have them.
|
||||
|
||||
There is also RSSLib which looks like it does the same thing in a slightly
|
||||
different way.
|
19
network/PyRSS2Gen/slack-desc
Normal file
19
network/PyRSS2Gen/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 ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
PyRSS2Gen: PyRSS2Gen (python RSS feed generator)
|
||||
PyRSS2Gen:
|
||||
PyRSS2Gen: PyRSS2Gen is a Python module that makes it easy to generate valid
|
||||
PyRSS2Gen: RSS feeds. You can use it to generate RSS feeds for web pages that
|
||||
PyRSS2Gen: don't have them.
|
||||
PyRSS2Gen:
|
||||
PyRSS2Gen: Home: http://www.dalkescientific.com/Python/PyRSS2Gen.html
|
||||
PyRSS2Gen:
|
||||
PyRSS2Gen:
|
||||
PyRSS2Gen:
|
||||
PyRSS2Gen:
|
Loading…
Reference in a new issue