blob: f7cd0b61ab4f8206e9736a2b733a94ac7d20189b (
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
36
37
38
39
40
41
|
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-feedparser
_pkgname=feedparser
pkgver=5.2.0
pkgrel=0
pkgdesc="A Python feed parser for RSS and Atom"
url="https://github.com/kurtmckee/feedparser"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.post1.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="be936ba83e20a6bec32a7dbf632ff10e feedparser-5.2.0.post1.tar.gz"
sha256sums="2c27fa4f598202ed2f956782f1f0d2156faf870710ef34b6d7a3c4757ecc6a14 feedparser-5.2.0.post1.tar.gz"
sha512sums="c302a2f9feeaa9ed6edbb278c4067a0139f9ef190353bc9f558f58dec8447d41cc5b1f9f55241748160c9ccc59ab60d6f3da68c38084770cd2ad442adf9f72d6 feedparser-5.2.0.post1.tar.gz"
|