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

Jelle van der Waa jelle at archlinux.org
Thu Feb 13 17:22:20 UTC 2020


    Date: Thursday, February 13, 2020 @ 17:22:20
  Author: jelle
Revision: 570651

upgpkg: python-pyinotify 0.9.6-7

Remove python2

Modified:
  python-pyinotify/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++----------------------------------
 1 file changed, 8 insertions(+), 34 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-13 17:20:15 UTC (rev 570650)
+++ PKGBUILD	2020-02-13 17:22:20 UTC (rev 570651)
@@ -2,34 +2,25 @@
 # Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 # Contributor: Evangelos Foutras <foutrelis at gmail.com>
 
-pkgname=('python-pyinotify' 'python2-pyinotify')
+pkgname=python-pyinotify
 pkgver=0.9.6
-pkgrel=6
+pkgrel=7
 pkgdesc='Python module used for monitoring filesystems events on Linux platforms with inotify.'
 arch=('any')
 url="https://github.com/seb-m/pyinotify"
 license=('custom:MIT')
-makedepends=('python' 'python2')
+depends=('python')
+makedepends=('python')
 source=("https://github.com/seb-m/pyinotify/archive/${pkgver}.tar.gz")
-md5sums=('33f4e599c22a3ac31b684335b4a535a0')
+sha512sums=('144db691c1cdfd4e52b838b8ed839b8d50d84d26a91a59b7460c3170f58a1c96b3ce4f51e6273835835291781215a87b8f2d2d87d1abf012e4c14b2cd4b3f4cf')
 
 build() {
-  cp -r $srcdir/pyinotify-$pkgver  $srcdir/pyinotify2-$pkgver
-
-  cd $srcdir/pyinotify2-$pkgver
-
-  python2 setup.py build
-
-  cd $srcdir/pyinotify-$pkgver
-
+  cd pyinotify-$pkgver
   python3 setup.py build
 }
 
-package_python-pyinotify() {
-  depends=('python')
-
-  cd $srcdir/pyinotify-$pkgver
-
+package() {
+  cd pyinotify-$pkgver
   python3 setup.py install --root=${pkgdir} -O1
 
   install -d ${pkgdir}/usr/share/licenses/python-pyinotify
@@ -36,20 +27,3 @@
   install -m644 COPYING \
     ${pkgdir}/usr/share/licenses/python-pyinotify
 }
-
-package_python2-pyinotify() {
-  depends=('python2')
-  replaces=('pyinotify')
-
-  cd $srcdir/pyinotify2-$pkgver
-
-  sed \
-    -e 's_#!/usr/bin/env python_&2_' \
-  -i python2/pyinotify.py
-
-  python2 setup.py install --root=${pkgdir} -O1
-
-  install -d ${pkgdir}/usr/share/licenses/python2-pyinotify
-  install -m644 COPYING \
-    ${pkgdir}/usr/share/licenses/python2-pyinotify
-}



More information about the arch-commits mailing list