summaryrefslogtreecommitdiffstats
path: root/testing/py-hackernews/APKBUILD
blob: d839d0ac37963710da889806afaab547e9030628 (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: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-hackernews
_pkgname=HackerNews
pkgver=1.5.5
pkgrel=1
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"