[arch-commits] Commit in python-pydot/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 20 12:21:15 UTC 2018
Date: Tuesday, November 20, 2018 @ 12:21:14
Author: felixonmars
Revision: 409047
archrelease: copy trunk to community-testing-any
Added:
python-pydot/repos/community-testing-any/
python-pydot/repos/community-testing-any/PKGBUILD
(from rev 409046, python-pydot/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-pydot/repos/community-testing-any/PKGBUILD (from rev 409046, python-pydot/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-11-20 12:21:14 UTC (rev 409047)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contrinutor: shining <shiningxc at gmail.com>
+# Contributor: phillid <dbphillipsnz _at_thingy_that_swirly_a_symbol gmaildott comm>
+
+pkgbase=python-pydot
+pkgname=(python-pydot python2-pydot)
+pkgver=1.3.0
+pkgrel=1
+pkgdesc="Python interface to Graphviz's Dot"
+arch=('any')
+url="https://github.com/erocarrera/pydot"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyparsing' 'python2-pyparsing'
+ 'graphviz')
+checkdepends=('python-chardet' 'python2-chardet')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/erocarrera/pydot/archive/v$pkgver.tar.gz")
+sha512sums=('035b46ab561e7c57c1bf1dfd07660fa30300d4d6a703741438d65c9120efb8c79f2e9017a81bc91abf6461cd86ef5720e28af5ac5bb8a2bdbf18333a41151026')
+
+prepare() {
+ cp -a pydot-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pydot-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pydot-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pydot-$pkgver/test
+ PYTHONPATH="$PWD/../build/lib:$PYTHONPATH" python pydot_unittest.py
+
+ cd "$srcdir"/pydot-$pkgver-py2/test
+ PYTHONPATH="$PWD/../build/lib:$PYTHONPATH" python2 pydot_unittest.py
+}
+
+package_python-pydot() {
+ depends=('python-pyparsing' 'graphviz')
+
+ cd pydot-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pydot() {
+ depends=('python2-pyparsing' 'graphviz')
+
+ cd pydot-$pkgver-py2
+ python2 setup.py install -O1 --root="$pkgdir"
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list