diff options
author | Nathan Owens | 2020-04-30 21:47:12 -0500 |
---|---|---|
committer | Nathan Owens | 2020-04-30 21:47:32 -0500 |
commit | 9e3160ed6b3aebb91d1b70ab8ec3895dc4cb3c72 (patch) | |
tree | 0056714e69b031e970719e7d2a79d4ceb117ae46 /PKGBUILD | |
parent | 1bdd0cd4405f09c2e0f9b5ba970f0bfdf0223d18 (diff) | |
download | aur-python-toyplot.tar.gz |
Update to 0.19.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 52 |
1 files changed, 15 insertions, 37 deletions
@@ -1,52 +1,30 @@ # Contributor: Lex Black <autumn-wind@web.de> # Contributor: Clint Valentine <valentine.clint@gmail.com> +# Maintainer: Nathan Owens <ndowens @ artixlinux.org> -_name=toyplot -pkgbase='python-toyplot' -pkgname=('python-toyplot' 'python2-toyplot') -pkgver=0.18.0 +pkgname=('python-toyplot') +pkgver=0.19.0 pkgrel=1 -pkgdesc="modern Python plotting toolkit supporting electronic publishing and reproducibility" +pkgdesc="Python plotting toolkit supporting electronic publishing and reproducibility" arch=('any') url="http://toyplot.readthedocs.io/" license=('custom:sandia') -makedepends=('python' 'python-setuptools' - 'python2' 'python2-setuptools') +depends=('python' 'python-arrow' 'python-custom_inherit' + 'python-multipledispatch' 'python-numpy' + 'python-reportlab' 'python-six') +makedepends=('python' 'python-setuptools' 'git') options=(!emptydirs) -source=("${pkgname}"-"${pkgver}".tar.gz::https://pypi.io/packages/source/"${_name:0:1}"/"${_name}"/"${_name}"-"${pkgver}".tar.gz - https://raw.githubusercontent.com/sandialabs/toyplot/89a17d4b4ab39e7d02383426264119f523540859/LICENSE) -sha256sums=('f3c07ed64609fa8747210421717b241c808da2fc5d296615c83bf422faca9e90' - '3f2c149ada89dc7874788fc3aee58ba5a1849fb2f44ba722f6a0a314b401c31f') - - -prepare() { - cp -a toyplot-"${pkgver}"{,-py2} -} +source=("git+https://github.com/sandialabs/toyplot#tag=v${pkgver}") +sha256sums=('SKIP') build(){ - cd "${srcdir}"/toyplot-"${pkgver}" + cd "${srcdir}/toyplot" python setup.py build - - cd "${srcdir}"/toyplot-"${pkgver}"-py2 - python2 setup.py build -} - -package_python2-toyplot() { - depends=('python2' 'python2-arrow' 'python2-custom_inherit' - 'python2-multipledispatch' 'python2-numpy' - 'python2-reportlab' 'python2-six') - - install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE - cd toyplot-"${pkgver}"-py2 - python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build } -package_python-toyplot() { - depends=('python' 'python-arrow' 'python-custom_inherit' - 'python-multipledispatch' 'python-numpy' - 'python-reportlab' 'python-six') +package() { + cd "${srcdir}/toyplot" + python setup.py install --root="${pkgdir}"/ --optimize=1 - install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE - cd toyplot-"${pkgver}" - python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build + install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } |