aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-embedly/APKBUILD
blob: 79692e2f87c3dc3a1e0775199165ca654805c4e0 (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-embedly
_pkgname=Embedly
pkgver=0.5.0
pkgrel=0
pkgdesc="A Python module for Embedly"
url="https://github.com/embedly/embedly-python"
arch="noarch"
license="BSD"
depends="python py-httplib2"
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="67bfdf6496e219307ffbefef15748702  Embedly-0.5.0.tar.gz"
sha256sums="e10bca4b5e25e8f30e93eb459921f787b08efc4004b6370a68f4c8984f6f16e1  Embedly-0.5.0.tar.gz"
sha512sums="c85abacaa33b7897ccda79dc3746497f4eefe54bac3eef0aaa7c9120fec14ff6b7652a342303bea0667f60c2e31cb1591a22cddeff6827c87c6e2b1cc3274469  Embedly-0.5.0.tar.gz"