# Contributor: William Pitcock # Maintainer: William Pitcock pkgname=py-sqlalchemy _pkgname=SQLAlchemy pkgver=1.1.3 pkgrel=0 pkgdesc="An object relational mapper for Python" url="http://pypi.python.org/pypi/SQLAlchemy" arch="all" license="MIT" depends="" makedepends="python2-dev py-setuptools python3-dev" subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python2 setup.py build || return 1 python3 setup.py build || return 1 } package() { mkdir -p "$pkgdir" } _py() { local python="$1" pkgdesc="$pkgdesc ${python:6:1}" depends="$depends $python" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } _py2() { replaces="$pkgname" _py python2 } _py3() { _py python3 } md5sums="d3a1e8d18f1e51a561db339b847ede0f SQLAlchemy-1.1.3.tar.gz" sha256sums="8b0ed90292a294e17d24482c9328abe69eb8e3143e2bd7103b6fadae2562638f SQLAlchemy-1.1.3.tar.gz" sha512sums="b35994f5dc005db7ddc82b353f1cec639e081f5965177e83f7b834af34fdcdfabcf35b45ac6aea3366168c7b0a0d3e95e86b7e84e715e1483039806e976f9e48 SQLAlchemy-1.1.3.tar.gz"