aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-praw/APKBUILD
blob: db0dee7f8cec7d7c383a061b386a967e985c8223 (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=3.3.0
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="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.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="e923dddefa05f0ddd624a953c6fc1f81  praw-3.3.0.zip"
sha256sums="dbd92207ed7b790e6d1a0b5150cc506ebfd5c84cb2cee182c0394d1f14d1489f  praw-3.3.0.zip"
sha512sums="bf27e143dfe8f411590cc20f5798f2d387b20d8c477bf02ee85fed2d7f0159223eba87fc960b170b4388b104337bb30af587e2cbdc5bf90590201ad05ffdb9d8  praw-3.3.0.zip"