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

Alad Wenter alad at archlinux.org
Sat Mar 2 16:15:37 UTC 2019


    Date: Saturday, March 2, 2019 @ 16:15:37
  Author: alad
Revision: 437394

remove python2-kitchen

Modified:
  pygraphviz/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++------------------------------
 1 file changed, 5 insertions(+), 30 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-02 16:12:42 UTC (rev 437393)
+++ PKGBUILD	2019-03-02 16:15:37 UTC (rev 437394)
@@ -1,11 +1,11 @@
-# Maintainer: Alad Wenter <alad at mailbox.org>
+# Maintainer: Alad Wenter <alad at archlinux.org>
 # Contributor: Clément DEMOULINS <clement at archivel.fr>
-pkgbase=pygraphviz
-pkgname=('python-pygraphviz' 'python2-pygraphviz')
+pkgname=python-pygraphviz
 pkgver=1.5
 pkgrel=1
 pkgdesc='Python interface to the Graphviz graph layout and visualization package'
-makedepends=('python' 'python2' 'graphviz' 'python-setuptools' 'python2-setuptools')
+depends=('python' 'graphviz')
+makedepends=('python' 'graphviz' 'python-setuptools' 'python2-setuptools')
 arch=('x86_64')
 license=('LGPL')
 url='https://pygraphviz.github.io/'
@@ -12,21 +12,12 @@
 source=("https://github.com/$pkgbase/$pkgbase/archive/$pkgbase-$pkgver.tar.gz")
 sha256sums=('58c3122c7efb9a62275a915953818acd5b3e113b943075501d316ab2291dc21d')
 
-prepare() {
-    cp -a "$pkgbase-$pkgbase-$pkgver" "python2-$pkgbase-$pkgver"
-}
-
 build() {
     cd "$pkgbase-$pkgbase-$pkgver"
     python setup.py build
-
-    cd ../"python2-$pkgbase-$pkgver"
-    python2 setup.py build
 }
 
-package_python-pygraphviz() {
-    depends=('python3' 'graphviz')
-
+package() {
     cd "$pkgbase-$pkgbase-$pkgver"
     python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
         --include-path /usr/include/graphviz \
@@ -33,19 +24,3 @@
         --library-path /usr/lib/graphviz
     mv "$pkgdir/usr/share/doc/$pkgbase-$pkgver" "$pkgdir/usr/share/doc/python-pygraphviz"
 }
-
-package_python2-pygraphviz() {
-    depends=('python2' 'graphviz')
-
-    cd "python2-$pkgbase-$pkgver"
-    python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
-        --include-path /usr/include/graphviz \
-        --library-path /usr/lib/graphviz
-    mv "$pkgdir/usr/share/doc/$pkgbase-$pkgver" "$pkgdir/usr/share/doc/python2-pygraphviz"
-
-    # Patch to use python2
-    find "$pkgdir" -type f \( -name '*.py' -or -executable \) -exec \
-        sed -i -e 's|#![ ]*/usr/bin/python$|#!/usr/bin/python2|' \
-        -e 's|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|' \
-    {} \;
-}


More information about the arch-commits mailing list