Date: Saturday, September 19, 2015 @ 06:01:32 Author: fyan Revision: 140685
archrelease: copy trunk to community-i686, community-x86_64 Added: python-peewee/repos/community-i686/ python-peewee/repos/community-i686/PKGBUILD (from rev 140684, python-peewee/trunk/PKGBUILD) python-peewee/repos/community-x86_64/ python-peewee/repos/community-x86_64/PKGBUILD (from rev 140684, python-peewee/trunk/PKGBUILD) ---------------------------+ community-i686/PKGBUILD | 59 ++++++++++++++++++++++++++++++++++++++++++++ community-x86_64/PKGBUILD | 59 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) Copied: python-peewee/repos/community-i686/PKGBUILD (from rev 140684, python-peewee/trunk/PKGBUILD) =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2015-09-19 04:01:32 UTC (rev 140685) @@ -0,0 +1,59 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Blackleg <blac...@openaliasbox.org> +# Contributor: Nidhogg +# Contributor: juantascon + +pkgname=python-peewee +pkgname=('python-peewee' 'python2-peewee') +pkgver=2.6.3 +pkgrel=1 +pkgdesc="a little orm" +url="https://pypi.python.org/pypi/peewee/" +arch=('i686' 'x86_64') +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git') +checkdepends=('python-apsw' 'python2-apsw' 'python-flask' 'python2-flask') +source=("git+https://github.com/coleifer/peewee.git#tag=$pkgver") +sha256sums=('SKIP') + +prepare() { + cp -a peewee{,-py2} +} + +build() { + cd "$srcdir/peewee" + python setup.py build + + cd "$srcdir/peewee-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/peewee" + python runtests.py -a + + cd "$srcdir/peewee-py2" + python2 runtests.py -a +} + +package_python-peewee() { + depends=('python') + optdepends=('python-psycopg2: for PostgreSQL database support' + 'mysql-python: for MySQL database support') + + cd "$srcdir/peewee" + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-peewee() { + depends=('python2') + optdepends=('python2-psycopg2: for PostgreSQL database support') + + cd "$srcdir/peewee-py2" + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + mv "$pkgdir/usr/bin/"pwiz{,2}.py +} Copied: python-peewee/repos/community-x86_64/PKGBUILD (from rev 140684, python-peewee/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2015-09-19 04:01:32 UTC (rev 140685) @@ -0,0 +1,59 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Blackleg <blac...@openaliasbox.org> +# Contributor: Nidhogg +# Contributor: juantascon + +pkgname=python-peewee +pkgname=('python-peewee' 'python2-peewee') +pkgver=2.6.3 +pkgrel=1 +pkgdesc="a little orm" +url="https://pypi.python.org/pypi/peewee/" +arch=('i686' 'x86_64') +license=('MIT') +makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git') +checkdepends=('python-apsw' 'python2-apsw' 'python-flask' 'python2-flask') +source=("git+https://github.com/coleifer/peewee.git#tag=$pkgver") +sha256sums=('SKIP') + +prepare() { + cp -a peewee{,-py2} +} + +build() { + cd "$srcdir/peewee" + python setup.py build + + cd "$srcdir/peewee-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/peewee" + python runtests.py -a + + cd "$srcdir/peewee-py2" + python2 runtests.py -a +} + +package_python-peewee() { + depends=('python') + optdepends=('python-psycopg2: for PostgreSQL database support' + 'mysql-python: for MySQL database support') + + cd "$srcdir/peewee" + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-peewee() { + depends=('python2') + optdepends=('python2-psycopg2: for PostgreSQL database support') + + cd "$srcdir/peewee-py2" + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + mv "$pkgdir/usr/bin/"pwiz{,2}.py +}