diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-12-19 20:07:44 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-12-19 20:07:44 -0500 |
commit | 13f18ba4894b1ee87beb1b521b02fec54b655d08 (patch) | |
tree | 61e1cf14d63f409d520d1109c062305a6f131af3 | |
parent | 86c7765514975b0001f90d974c77c3bcd243651a (diff) | |
download | abslibre-13f18ba4894b1ee87beb1b521b02fec54b655d08.tar.gz abslibre-13f18ba4894b1ee87beb1b521b02fec54b655d08.tar.bz2 abslibre-13f18ba4894b1ee87beb1b521b02fec54b655d08.zip |
python-gnusrss: add new package to [pcr]
-rw-r--r-- | pcr/python-gnusrss/PKGBUILD | 27 | ||||
-rw-r--r-- | pcr/python-gnusrss/gnusrss-setup_encoding.patch | 11 |
2 files changed, 38 insertions, 0 deletions
diff --git a/pcr/python-gnusrss/PKGBUILD b/pcr/python-gnusrss/PKGBUILD new file mode 100644 index 000000000..b9ecf7708 --- /dev/null +++ b/pcr/python-gnusrss/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> + +_name=gnusrss +pkgname=python-${_name} +pkgver=0.2.1.7 +pkgrel=1 +pkgdesc="Python program to post RSS to GNU Social" +arch=('any') +url="http://daemons.cf/cgit/gnusrss/" +license=('GPL') +depends=('python-feedparser' 'python-pycurl' 'sqlite') +makedepends=('python-setuptools') +source=("http://daemons.cf/cgit/${_name}/snapshot/${_name}-${pkgver}.tar.gz" + 'gnusrss-setup_encoding.patch') +md5sums=('2ee38f6ad98fcf55a1877e4af193eb81' + '27baacf85df644a0b2406a6216243a9d') + +prepare() { + cd "${srcdir}/${_name}-${pkgver}" + patch -Np1 -i "${srcdir}/gnusrss-setup_encoding.patch" +} +package() { + cd "${srcdir}/${_name}-${pkgver}" + python setup.py install --root="${pkgdir}/" --optimize=1 + + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/pcr/python-gnusrss/gnusrss-setup_encoding.patch b/pcr/python-gnusrss/gnusrss-setup_encoding.patch new file mode 100644 index 000000000..7670ee9a5 --- /dev/null +++ b/pcr/python-gnusrss/gnusrss-setup_encoding.patch @@ -0,0 +1,11 @@ +--- gnusrss-0.2.1.7.orig/setup.py 2015-12-14 15:13:40.000000000 -0500 ++++ gnusrss-0.2.1.7/setup.py 2015-12-19 18:06:03.391772318 -0500 +@@ -7,7 +7,7 @@ + setup(name='gnusrss', + version=VERSION, + description='Post feeds to GNU Social.', +- long_description=open('README').read(), ++ long_description=open('README', encoding='utf-8').read(), + author='drymer', + author_email='drymer@autistici.org', + url='http://daemons.cf/cgit/gnusrss/about/', |