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

Alad Wenter alad at archlinux.org
Sat Mar 2 16:19:04 UTC 2019


    Date: Saturday, March 2, 2019 @ 16:19:04
  Author: alad
Revision: 437396

remove python2-i3-py

Modified:
  python-i3-py/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++-------------------------
 1 file changed, 6 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-02 16:16:07 UTC (rev 437395)
+++ PKGBUILD	2019-03-02 16:19:04 UTC (rev 437396)
@@ -2,8 +2,7 @@
 # Contributor: willemw <willemw12 at gmail.com>
 # Contributor: Anntoin Wilkinson <anntoin gmail com>
 
-pkgbase=python-i3-py
-pkgname=('python-i3-py' 'python2-i3-py')
+pkgname=python-i3-py
 pkgver=0.6.5
 # https://github.com/ziberna/i3-py/issues/22
 _commit=27f88a616e9ecc340e7d041d3d00782f8a1964c1
@@ -12,27 +11,19 @@
 arch=('any')
 url='https://github.com/ziberna/i3-py'
 license=('GPL3' 'custom:WTFPL2')
-makedepends=('git' 'python' 'python2')
+depends=('python' 'i3-wm')
+makedepends=('git' 'python')
 source=("$pkgbase::git+https://github.com/ziberna/i3-py#commit=$_commit"
         'LICENSE::http://www.wtfpl.net/txt/copying/')
-md5sums=('SKIP'
-         '8365d07beeb5f39d87e846dca3ae7b64')
+sha256sums=('SKIP'
+            '0356258391e190dc1d44ea01565cfe627fe44e27dad693a0a54c2483a7b223e5')
 
-prepare() {
-    cp -a "$pkgbase" "$pkgbase"-python2
-}
-
 build() {
     cd "$pkgbase"
     python setup.py build
-
-    cd ../"$pkgbase"-python2
-    python2 setup.py build
 }
 
-package_python-i3-py() {
-    depends=('python' 'i3-wm')
-
+package() {
     cd "$pkgbase"
     python setup.py install --root="$pkgdir/" --optimize=1
 
@@ -40,14 +31,4 @@
     install -Dm644 examples/*.py -t "$pkgdir"/usr/share/"$pkgname"/examples
 }
 
-package_python2-i3-py() {
-    depends=('python2' 'i3-wm')
-
-    cd "$pkgbase"-python2
-    python2 setup.py install --root="$pkgdir/" --optimize=1
-
-    install -Dm644 "$srcdir"/LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"
-    install -Dm644 examples/*.py -t "$pkgdir"/usr/share/"$pkgname"/examples
-}
-
 # vim: set et sw=4 sts=4 ft=sh:



More information about the arch-commits mailing list