summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/core/python_modules/python-pyrss2gen/PKGBUILD35
-rw-r--r--abs/core/python_modules/python-pyrss2gen/__changelog2
2 files changed, 37 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-pyrss2gen/PKGBUILD b/abs/core/python_modules/python-pyrss2gen/PKGBUILD
new file mode 100644
index 0000000..69258ca
--- /dev/null
+++ b/abs/core/python_modules/python-pyrss2gen/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Chris Warrick <aur@chriswarrick.com>
+pkgbase=python-pyrss2gen
+pkgname=('python2-pyrss2gen')
+_pyname=PyRSS2Gen
+pkgver=1.1
+pkgrel=6
+pkgdesc='A Python library for generating RSS 2.0 feeds.'
+arch=('any')
+url="http://www.dalkescientific.com/Python/PyRSS2Gen.html"
+license=('BSD')
+makedepends=('python2' 'python2-setuptools')
+options=(!emptydirs)
+source=("http://www.dalkescientific.com/Python/${_pyname}-${pkgver}.tar.gz")
+md5sums=("c56b9453d52b0a70be4f3e95112058aa")
+provides=('pyrss2gen')
+
+prepare() {
+ cd "${srcdir}/${_pyname}-${pkgver}"
+ cp -r "${srcdir}/${_pyname}-${pkgver}" "${srcdir}/${_pyname}-${pkgver}-py2"
+}
+
+package_python-pyrss2gen() {
+ depends=('python' 'python-setuptools')
+ cd "${srcdir}/${_pyname}-${pkgver}"
+ python3 setup.py install --root="${pkgdir}/" --optimize=1
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}/LICENSE"
+}
+
+package_python2-pyrss2gen() {
+ depends=('python2' 'python2-setuptools')
+ cd "${srcdir}/${_pyname}-${pkgver}-py2"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-pyrss2gen/__changelog b/abs/core/python_modules/python-pyrss2gen/__changelog
new file mode 100644
index 0000000..4f818ef
--- /dev/null
+++ b/abs/core/python_modules/python-pyrss2gen/__changelog
@@ -0,0 +1,2 @@
+PKGBUILD: don't build py 3 stuff
+