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

Felix Yan felixonmars at archlinux.org
Tue Jun 11 12:33:16 UTC 2019


    Date: Tuesday, June 11, 2019 @ 12:33:15
  Author: felixonmars
Revision: 480397

upgpkg: python-prctl 1.7-3

remove python2 sibling

Modified:
  python-prctl/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++-----------------------------
 1 file changed, 7 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-11 12:33:07 UTC (rev 480396)
+++ PKGBUILD	2019-06-11 12:33:15 UTC (rev 480397)
@@ -1,50 +1,28 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-prctl
-pkgname=('python-prctl' 'python2-prctl')
+pkgname=python-prctl
 pkgver=1.7
-pkgrel=2
+pkgrel=3
 pkgdesc='Python(ic) interface to the linux prctl syscall'
 arch=('x86_64')
 license=('GPL')
 url='https://github.com/seveas/python-prctl'
-makedepends=('libcap' 'python' 'python2')
+depends=('python' 'libcap')
 checkdepends=('iputils' 'procps-ng')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/seveas/python-prctl/archive/v$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/seveas/python-prctl/archive/v$pkgver.tar.gz")
 sha512sums=('f2a18fc8e9ef469722c6618d5dd6b7b558d4060783e6fb3a8dc868d9ed3fa21ade371f94a4538a24dca92a71f623a96638c96882d9cf0d3d499a9f12dae8538a')
 
-prepare() {
-  cp -a python-prctl-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/python-prctl-$pkgver
+  cd python-prctl-$pkgver
   python setup.py build
-
-  cd "$srcdir"/python-prctl-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/python-prctl-$pkgver
+  cd python-prctl-$pkgver
   python -m unittest discover || warning "Tests failed"
-
-  cd "$srcdir"/python-prctl-$pkgver-py2
-  python2 -m unittest discover || warning "Tests failed"
 }
 
-package_python-prctl() {
-  depends=('python' 'libcap')
-
+package() {
   cd python-prctl-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-prctl() {
-  depends=('python2' 'libcap')
-
-  cd python-prctl-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
-# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list