# $Id: PKGBUILD 102482 2013-12-12 10:34:55Z jelle $ # Maintainer: Angel Velasquez # Contributor: Sébastien Luttringer pkgbase=python-sqlalchemy pkgname=('python-sqlalchemy' 'python2-sqlalchemy') pkgver=0.8.4 pkgrel=1 arch=('i686' 'x86_64' 'mips64el') # python2 package contain .so url="http://www.sqlalchemy.org/" license=('custom: MIT') makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools' 'python-nose' 'python2-nose') source=("https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz") md5sums=('fd517e1bb4031cac1e3fa00108111b38') build() { cp -a SQLAlchemy-$pkgver SQLAlchemy2-$pkgver cd SQLAlchemy-$pkgver python setup.py build cd ../SQLAlchemy2-$pkgver python2 setup.py build } check() { cd SQLAlchemy-${pkgver} python setup.py check python2 setup.py check } package_python-sqlalchemy() { pkgdesc='Python SQL toolkit and Object Relational Mapper' depends=('python') cd SQLAlchemy-${pkgver} python setup.py install --root="${pkgdir}" install -D -m644 LICENSE \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_python2-sqlalchemy() { pkgdesc='Python 2 SQL toolkit and Object Relational Mapper' depends=('python2') cd SQLAlchemy2-$pkgver python2 setup.py install --root="$pkgdir" install -D -m644 LICENSE \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim:set ts=2 sw=2 ft=sh et: