diff options
author | root <root@rshg054.dnsready.net> | 2012-03-10 00:01:15 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-10 00:01:15 +0000 |
commit | 3792e3874accbc868e7032042f1ecefdef25638e (patch) | |
tree | 2ba250e0011924d6172b918515475864187e84db /community/python-sqlalchemy | |
parent | 0a7c64736c0b026c3105928d89500a8af1ad5eac (diff) |
Sat Mar 10 00:01:15 UTC 2012
Diffstat (limited to 'community/python-sqlalchemy')
-rw-r--r-- | community/python-sqlalchemy/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/python-sqlalchemy/PKGBUILD b/community/python-sqlalchemy/PKGBUILD new file mode 100644 index 000000000..f525225be --- /dev/null +++ b/community/python-sqlalchemy/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 67332 2012-03-09 00:22:36Z seblu $ +# Maintainer: Angel Velasquez <angvp@archlinux.org> +# Contributor: Sébastien Luttringer <seblu@aur.archlinux.org> + +pkgbase=python-sqlalchemy +pkgname=('python-sqlalchemy' 'python2-sqlalchemy') +pkgver=0.7.5 +pkgrel=1 +arch=('i686' 'x86_64') # python2 package contain .so +url="http://www.sqlalchemy.org/" +license=('custom: MIT') +makedepends=('python' 'python2' 'python-distribute' 'python2-distribute') +source=("http://downloads.sourceforge.net/sourceforge/sqlalchemy/SQLAlchemy-$pkgver.tar.gz") +md5sums=('52e71dddfdb8ca8c5049558a23d26557') + +build() { + cp -a SQLAlchemy-$pkgver SQLAlchemy2-$pkgver + cd SQLAlchemy-$pkgver + python setup.py build + cd ../SQLAlchemy2-$pkgver + python2 setup.py build +} + +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: |