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

Jelle van der Waa jelle at archlinux.org
Wed May 13 09:28:24 UTC 2020


    Date: Wednesday, May 13, 2020 @ 09:28:24
  Author: jelle
Revision: 627557

Remove unused python2 module

Modified:
  python-xcffib/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++----------------------------
 1 file changed, 7 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-13 09:27:22 UTC (rev 627556)
+++ PKGBUILD	2020-05-13 09:28:24 UTC (rev 627557)
@@ -1,52 +1,31 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Roger Duran <rogerduran at gmail.com>
 
-pkgbase=python-xcffib
-pkgname=(python-xcffib python2-xcffib)
+pkgname=python-xcffib
 pkgver=0.9.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python3 drop in replacement for xpyb, an XCB python binding"
 arch=('any')
 url="https://pypi.python.org/pypi/xcffib"
 license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-cffi' 'python2-cffi' 'python-six'
-             'python2-six' 'libxcb' 'haskell-xcffib')
-checkdepends=('python-nose' 'python2-nose' 'xorg-server-xvfb' 'xorg-xeyes')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/tych0/xcffib/archive/v$pkgver.tar.gz")
+depends=('python-six' 'python-cffi' 'libxcb')
+makedepends=('python-setuptools' 'python-cffi' 'python-six' 'libxcb' 'haskell-xcffib')
+checkdepends=('python-nose' 'xorg-server-xvfb' 'xorg-xeyes')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tych0/xcffib/archive/v$pkgver.tar.gz")
 sha512sums=('1299ff124d5ecb91c9551fb583741901f0635d9b3685da0436a14ebfdfdcc5bdec558a457400a27a22ffe2b99649250b3ef74223f27f8ac3a267a69314b509fb')
 
-prepare() {
-  cp -a xcffib-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/xcffib-$pkgver
   make xcffib GEN=xcffibgen CABAL=true
   python setup.py build
-
-  cd "$srcdir"/xcffib-$pkgver-py2
-  make xcffib GEN=xcffibgen CABAL=true
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/xcffib-$pkgver
   xvfb-run nosetests3
-
-  cd "$srcdir"/xcffib-$pkgver-py2
-  xvfb-run nosetests2
 }
 
-package_python-xcffib() {
-  depends=('python-six' 'python-cffi' 'libxcb')
-
+package() {
   cd xcffib-$pkgver
   python setup.py install --root="$pkgdir/" --optimize=1
 }
-
-package_python2-xcffib() {
-  depends=('python2-six' 'python2-cffi' 'libxcb')
-
-  cd xcffib-$pkgver-py2
-  python2 setup.py install --root="$pkgdir/" --optimize=1
-}



More information about the arch-commits mailing list