aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-peewee/APKBUILD
blob: dbd98d2a48cf3a8c82a5cbef2228b75ec68be85e (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.3.1
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="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="a2f2fd5ff14e6f2a6382ade6142a3154  peewee-2.3.1.tar.gz"
sha256sums="894a7d0aab5bd384f4c2948079050c136d9f381bb74ea9937aa54b2652478afc  peewee-2.3.1.tar.gz"
sha512sums="ff585be03fc48ffb37b58c23c98981fe9e8944182361213de97243d85862c8807318bd37d6009900edc40a105b1720757ba2595093cf51b0e8b9b4e1bf3ee9f9  peewee-2.3.1.tar.gz"