aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-feedparser
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2016-11-11 06:29:16 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-12-27 10:50:45 +0200
commit81724725359b6db5e118de499d4ee79c4dd8b168 (patch)
tree8c69e87c1e055340952e3c618f06903f28996057 /community/py-feedparser
parent1f74663d8c9593032d03d537fc62dfd7cc833c3e (diff)
downloadaports-81724725359b6db5e118de499d4ee79c4dd8b168.tar.bz2
aports-81724725359b6db5e118de499d4ee79c4dd8b168.tar.xz
main/py-feedparser: move to community
Diffstat (limited to 'community/py-feedparser')
-rw-r--r--community/py-feedparser/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/py-feedparser/APKBUILD b/community/py-feedparser/APKBUILD
new file mode 100644
index 0000000000..7a354f558e
--- /dev/null
+++ b/community/py-feedparser/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-feedparser
+_pkgname=feedparser
+pkgver=5.2.1
+pkgrel=1
+pkgdesc="A Python feed parser for RSS and Atom"
+url="https://github.com/kurtmckee/feedparser"
+arch="noarch"
+license="BSD"
+makedepends="python2-dev py-setuptools python3-dev"
+subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ python2 setup.py build || return 1
+ python3 setup.py build || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python=$1
+ pkgdesc="$pkgdesc - $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+ _py python2
+ replaces="$pkgname"
+}
+
+_py3() {
+ _py python3
+}
+
+md5sums="d552f7a2a55e8e33b2a3fe1082505b42 feedparser-5.2.1.tar.gz"
+sha256sums="bd030652c2d08532c034c27fcd7c85868e7fa3cb2b17f230a44a6bbc92519bf9 feedparser-5.2.1.tar.gz"
+sha512sums="1fd0c4324e2eff8ef4b15e3793c767290bca562af4a5056fdbdfa12411095530c87a113bb1b9757e532ff63aecb399b18f1e6b753884798eb6b8d3fdf575af81 feedparser-5.2.1.tar.gz"