aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-praw/APKBUILD
blob: eaff3efa92eb6a992beb378c76094e5f61237f0a (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-praw
_pkgname=praw
pkgver=2.1.18
pkgrel=0
pkgdesc="A Python module to access to reddit's API"
url="https://github.com/praw-dev/praw"
arch="noarch"
license="GPL3+"
depends="python py-update-checker py-requests py-six"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.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="ee341c10384fd72f401b9cce6dde35f3  praw-2.1.18.tar.gz"
sha256sums="bd29f37e7b4ca37478d541c745606810cfcd60455a6d9bdb6a06629f19b8494e  praw-2.1.18.tar.gz"
sha512sums="138890db5a37637fe5ab0439d205b9ea9593fe4ee3cf1ce261b13ba0aee42c007e2b49aaed160af15b42d8944c44f6fa95e2e8285981efaa06c302bec23b18b3  praw-2.1.18.tar.gz"