aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-peewee/APKBUILD
blob: a8aa28f4e7b16e3f50aabf08fc4744ca73d776ac (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-peewee
_pkgname=peewee
pkgver=2.1.4
pkgrel=0
pkgdesc="A small, expressive Object-relational mapping"
url="https://github.com/coleifer/peewee"
arch="noarch"
license="MIT"
depends="python"
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="7118e364b3fa9409a9003f34415a2394  peewee-2.1.4.tar.gz"
sha256sums="fbe35b74bdccd3ebcb5c7fe49b5d6b71a426b0c1589d72697a4649dd84410230  peewee-2.1.4.tar.gz"
sha512sums="a6f44ab9ee43264ba14e3738f5156bf2d5873307938a1f78f0202b7da43f630b4cdcfb93817f36402a48e74b8b7a5e12368843c5a95aac9fde9b4e8c64f94caf  peewee-2.1.4.tar.gz"