mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-02 04:11:33 +02:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# 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"
|