Date: Tuesday, November 10, 2020 @ 05:12:30 Author: foutrelis Revision: 749358
archrelease: copy trunk to community-staging-any Added: python-opt_einsum/repos/community-staging-any/ python-opt_einsum/repos/community-staging-any/PKGBUILD (from rev 749357, python-opt_einsum/trunk/PKGBUILD) ----------+ PKGBUILD | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) Copied: python-opt_einsum/repos/community-staging-any/PKGBUILD (from rev 749357, python-opt_einsum/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2020-11-10 05:12:30 UTC (rev 749358) @@ -0,0 +1,25 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@gmail.com> +# Contributor: Adrien Wu <adrien.sf...@gmail.com> +pkgname=python-opt_einsum +pkgver=3.3.0 +pkgrel=2 +pkgdesc="Optimizing einsum functions in NumPy, Tensorflow, Dask, and more with contraction order optimization" +url="https://github.com/dgasmith/opt_einsum" +license=('MIT') +arch=('any') +depends=('python') +makedepends=('python-setuptools') +_name=opt_einsum +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('59f6475f77bbc37dcf7cd748519c0ec60722e91e63ca114e68821c0c54a46549') + +build() { + cd "$srcdir/$_name-$pkgver" + python setup.py build +} + +package() { + cd "$srcdir/$_name-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}