diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-10-06 20:06:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-22 08:23:15 +0000 |
commit | 3f75aadf659ad830dd08317f608c7a0331ed8c5a (patch) | |
tree | f098ebc135209ab74fbe7e9116f1dc25bed87c9b /testing/py-hackernews/APKBUILD | |
parent | 19f1578040575452040624c2f79641a5f75249b6 (diff) | |
download | aports-3f75aadf659ad830dd08317f608c7a0331ed8c5a.tar.bz2 aports-3f75aadf659ad830dd08317f608c7a0331ed8c5a.tar.xz |
testing/py-hackernews: new aport
Python API for Hacker News
https://github.com/thekarangoel/HackerNewsAPI/
Diffstat (limited to 'testing/py-hackernews/APKBUILD')
-rw-r--r-- | testing/py-hackernews/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-hackernews/APKBUILD b/testing/py-hackernews/APKBUILD new file mode 100644 index 0000000000..276791d64c --- /dev/null +++ b/testing/py-hackernews/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-hackernews +_pkgname=HackerNews +pkgver=1.5.5 +pkgrel=0 +pkgdesc="Python API for Hacker News" +url="https://github.com/thekarangoel/HackerNewsAPI/" +arch="noarch" +license="MIT" +depends="python py-requests py-beautifulsoup4" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip" + +_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="dff66a1677b42567129ec9aace3b53d1 HackerNews-1.5.5.zip" +sha256sums="ffaf12e7dd136df7578e8125c52f1709b8f377e583af99f31d04f7709c9043fc HackerNews-1.5.5.zip" +sha512sums="ad100c9eb2857fdce61ee74d45cd58409ea36f2b374fcf58ba6fe9d3e45f4ad446fae91a7424ce1132c275a526c8cece85a54be61714007a8f84e55ba1ab4533 HackerNews-1.5.5.zip" |