Date: Tuesday, December 26, 2017 @ 08:05:44 Author: felixonmars Revision: 276092
archrelease: copy trunk to community-any Added: python-pydot/repos/community-any/PKGBUILD (from rev 276091, python-pydot/trunk/PKGBUILD) Deleted: python-pydot/repos/community-any/PKGBUILD ----------+ PKGBUILD | 108 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 54 insertions(+), 54 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-12-26 08:05:28 UTC (rev 276091) +++ PKGBUILD 2017-12-26 08:05:44 UTC (rev 276092) @@ -1,54 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contrinutor: shining <shinin...@gmail.com> -# Contributor: phillid <dbphillipsnz _at_thingy_that_swirly_a_symbol gmaildott comm> - -pkgbase=python-pydot -pkgname=(python-pydot python2-pydot) -pkgver=1.2.3 -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") -md5sums=('ed5edbe6b4bd5d1ddbdd7eb4b51e94c8') - -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 -} Copied: python-pydot/repos/community-any/PKGBUILD (from rev 276091, python-pydot/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-12-26 08:05:44 UTC (rev 276092) @@ -0,0 +1,54 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contrinutor: shining <shinin...@gmail.com> +# Contributor: phillid <dbphillipsnz _at_thingy_that_swirly_a_symbol gmaildott comm> + +pkgbase=python-pydot +pkgname=(python-pydot python2-pydot) +pkgver=1.2.4 +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=('848b3d1128eddd747de98fc405b01e7d523140f0da262aa41299f43873d34ab10a8d012cef6d808da069372f6f662c046f454d7ed01d425f2787f233c09e35f4') + +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 +}