aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-vkontakte/APKBUILD
blob: 1374f3645c76ed22c87529548bd28c25348a7767 (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-vkontakte
_pkgname=vkontakte
pkgver=1.3.2
pkgrel=0
pkgdesc="Python API wrapper for vk.com"
url="http://bitbucket.org/kmike/vkontakte/"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.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="0f938fdc19412666040db91f8915677d  vkontakte-1.3.2.tar.gz"
sha256sums="06fd2fdb89a1b929331fda3014e08a1e327bd716b5c5c231e8c8dd96a25d6703  vkontakte-1.3.2.tar.gz"
sha512sums="d0a1add1caf2047bee788dda81863a1b406b961f655135509a26d3f6cc866cc2d6ead2ac6db454b90d4fa8249f401cea05b33e7e3fd7222daed64bd70bba9dde  vkontakte-1.3.2.tar.gz"