blob: 69258cac6755b564fec569ba69050ddc7c550a96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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:
|