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

Jelle van der Waa jelle at archlinux.org
Fri May 8 18:33:17 UTC 2020


    Date: Friday, May 8, 2020 @ 18:33:17
  Author: jelle
Revision: 625736

upgpkg: python-daemon 2.2.4-4

Remove unused python2 module

Modified:
  python-daemon/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++------------------------
 1 file changed, 5 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-08 18:26:43 UTC (rev 625735)
+++ PKGBUILD	2020-05-08 18:33:17 UTC (rev 625736)
@@ -2,29 +2,22 @@
 # Contributor: Anatol Pomozov
 # Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
 
-pkgbase=python-daemon
-pkgname=('python-daemon' 'python2-daemon')
+pkgname=python-daemon
 pkgver=2.2.4
-pkgrel=3
+pkgrel=4
 pkgdesc='Library to implement a well-behaved Unix daemon process'
 arch=('any')
 url='https://pypi.python.org/pypi/python-daemon'
 license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-docutils' 'python2-docutils' 'python-lockfile' 'python2-lockfile')
+depends=('python' 'python-lockfile' 'python-docutils')
+makedepends=('python-setuptools' 'python-docutils' 'python-lockfile')
 checkdepends=('python-mock' 'python-testscenarios')
-source=(https://files.pythonhosted.org/packages/source/p/$pkgbase/$pkgbase-$pkgver.tar.gz)
+source=(https://files.pythonhosted.org/packages/source/p/$pkgname/$pkgname-$pkgver.tar.gz)
 sha256sums=('57c84f50a04d7825515e4dbf3a31c70cc44414394a71608dee6cfde469e81766')
 
-prepare() {
-  cp -a python-daemon-$pkgver{,-py2}
-}
-
 build() {
   cd "${srcdir}"/python-daemon-$pkgver
   python setup.py build
-
-  cd "${srcdir}"/python-daemon-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
@@ -33,8 +26,6 @@
 }
 
 package_python-daemon() {
-  depends=('python' 'python-lockfile' 'python-docutils')
-
   cd "${srcdir}"/python-daemon-$pkgver
 
   python setup.py install --root="$pkgdir" --optimize=1
@@ -41,13 +32,3 @@
   install -Dm644 LICENSE.ASF-2 "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.ASF-2
   install -Dm644 LICENSE.GPL-3 "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.GPL-3
 }
-
-package_python2-daemon() {
-  depends=('python2' 'python2-lockfile' 'python2-docutils')
-
-  cd "${srcdir}"/python-daemon-$pkgver-py2
-
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-  install -Dm644 LICENSE.ASF-2 "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.ASF-2
-  install -Dm644 LICENSE.GPL-3 "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE.GPL-3
-}


More information about the arch-commits mailing list