aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py-peewee/APKBUILD
blob: 2fcfd0a7f41361ea19b9286b498af5bf0daa1965 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                               
            




                                                       
                 
              
                                       

              
                                                                                                          





















                                                                          


                                                                                                                                                                  
# 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="python2"
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="a2f2fd5ff14e6f2a6382ade6142a3154  peewee-2.3.1.tar.gz"
sha256sums="894a7d0aab5bd384f4c2948079050c136d9f381bb74ea9937aa54b2652478afc  peewee-2.3.1.tar.gz"
sha512sums="ff585be03fc48ffb37b58c23c98981fe9e8944182361213de97243d85862c8807318bd37d6009900edc40a105b1720757ba2595093cf51b0e8b9b4e1bf3ee9f9  peewee-2.3.1.tar.gz"