Date: Monday, August 4, 2014 @ 05:47:58 Author: fyan Revision: 116817
addpkg: python-ipdb 0.8-2 Added: python-ipdb/ python-ipdb/repos/ python-ipdb/trunk/ python-ipdb/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Added: python-ipdb/trunk/PKGBUILD =================================================================== --- python-ipdb/trunk/PKGBUILD (rev 0) +++ python-ipdb/trunk/PKGBUILD 2014-08-04 03:47:58 UTC (rev 116817) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@gmail.com> +# Contributor: N30N <archli...@alunamation.com> +# Contributor: giniu <ggi...@gmail.com> + +pkgbase=python-ipdb +pkgname=(python-ipdb python2-ipdb) +pkgver=0.8 +pkgrel=2 +pkgdesc="IPython-enabled pdb" +url="http://pypi.python.org/pypi/ipdb" +makedepends=('python-setuptools' 'python2-setuptools' 'ipython' 'ipython2') +arch=("any") +license=("GPL") +source=("https://pypi.python.org/packages/source/i/ipdb/ipdb-${pkgver}.zip") +md5sums=("96dca0712efa01aa5eaf6b22071dd3ed") + +prepare() { + cp -a ipdb-${pkgver}{,-py2} +} + +package_python-ipdb() { + depends=("ipython") + + cd "${srcdir}/ipdb-${pkgver}" + python setup.py install -O1 --root="${pkgdir}" + + ln -s ipdb3 "$pkgdir/usr/bin/ipdb" +} + +package_python2-ipdb() { + depends=("ipython2") + + cd "${srcdir}/ipdb-${pkgver}-py2" + python2 setup.py install -O1 --root="${pkgdir}" + + mv "$pkgdir/usr/bin/ipdb"{,2} +}