[arch-commits] Commit in python-ipdb/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Apr 2 14:31:33 UTC 2019


    Date: Tuesday, April 2, 2019 @ 14:31:33
  Author: felixonmars
Revision: 447791

upgpkg: python-ipdb 0.12-2

remove python2 sibling

Modified:
  python-ipdb/trunk/PKGBUILD

----------+
 PKGBUILD |   39 ++++++++-------------------------------
 1 file changed, 8 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-02 14:28:38 UTC (rev 447790)
+++ PKGBUILD	2019-04-02 14:31:33 UTC (rev 447791)
@@ -2,54 +2,31 @@
 # Contributor: N30N <archlinux at alunamation.com>
 # Contributor: giniu <gginiu at gmail.com>
 
-pkgbase=python-ipdb
-pkgname=(python-ipdb python2-ipdb)
+pkgname=python-ipdb
 pkgver=0.12
-pkgrel=1
+pkgrel=2
 pkgdesc="IPython-enabled pdb"
 url="http://pypi.python.org/pypi/ipdb"
-makedepends=('python-setuptools' 'python2-setuptools' 'ipython' 'ipython2')
+depends=("ipython")
+makedepends=('python-setuptools')
 arch=("any")
 license=("BSD")
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/gotcha/ipdb/archive/$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/gotcha/ipdb/archive/$pkgver.tar.gz")
 sha512sums=('00df9861f586b70fa9ef75ac09ab2e60c9785c9472ba2a5b10a546bfc5834e38f78538dd27f080251f6236c2b7b5af46b16d587b2777424d84d240abc8b59788')
 
-prepare() {
-  cp -a ipdb-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/ipdb-$pkgver
+  cd ipdb-$pkgver
   python setup.py build
-
-  cd "$srcdir"/ipdb-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/ipdb-$pkgver
+  cd ipdb-$pkgver
   python setup.py test
-
-  cd "$srcdir"/ipdb-$pkgver-py2
-  python2 setup.py test
 }
 
-package_python-ipdb() {
-  depends=("ipython")
-
+package() {
   cd ipdb-$pkgver
   python setup.py install -O1 --root="$pkgdir"
-
   ln -s ipdb3 "$pkgdir"/usr/bin/ipdb
   install -Dm644 COPYING.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING.txt
 }
-
-package_python2-ipdb() {
-  depends=("ipython2")
-
-  cd ipdb-$pkgver-py2
-  python2 setup.py install -O1 --root="$pkgdir"
-
-  mv "$pkgdir"/usr/bin/ipdb{,2}
-  install -Dm644 COPYING.txt "$pkgdir"/usr/share/licenses/$pkgname/COPYING.txt
-}


More information about the arch-commits mailing list