mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 20:40:32 +01:00
Updated with NicoHood modifications
This commit is contained in:
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016-2017 Plotly, Inc
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
52
PKGBUILD
52
PKGBUILD
@@ -1,24 +1,44 @@
|
||||
#Maintainer: fclad <fcladera at fcladera.com>
|
||||
# Maintainer: NicoHood <archlinux {cat} nicohood {dog} de>
|
||||
# PGP ID: 97312D5EB9D7AE7D0BD4307351DAE9B7C1AE9161
|
||||
# Contributor: fclad <fcladera at fcladera.com>
|
||||
|
||||
_pkgname=plotly
|
||||
pkgname=python-plotly
|
||||
pkgver=2.0.7
|
||||
_pkgname=python-plotly
|
||||
_pypiname=plotly
|
||||
pkgbase=python-plotly
|
||||
pkgname=('python-plotly' 'python2-plotly')
|
||||
pkgver=2.0.9
|
||||
pkgrel=1
|
||||
pkgdesc="An interactive, browser-based charting library for python"
|
||||
arch=('any')
|
||||
url="https://plot.ly/python/"
|
||||
license=('MIT')
|
||||
depends=('python-requests' 'python-pytz')
|
||||
makedepends=('git' 'python' 'python-setuptools')
|
||||
source=('https://pypi.python.org/packages/8c/4a/9e42d13f74a2c7872ba6e7a868b152bd815c01038144570ec729ff13c065/'$_pkgname'-'$pkgver'.tar.gz')
|
||||
md5sums=('SKIP')
|
||||
arch=("any")
|
||||
makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
|
||||
source=("${_pkgname}-${pkgver}.tar.gz::https://pypi.org/packages/source/p/${_pypiname}/${_pypiname}-${pkgver}.tar.gz"
|
||||
"LICENSE")
|
||||
sha512sums=('0353091e204cbd42b2f425a739d58b8c35087045ceced229b594178706695009588f7a92a62f83583db2a5629570d9823dc9ff4687e270e790dcedaacf6a8556'
|
||||
'1f27d546f594955e443a3d8a72aa4f18afa9d946336a9fd0585de3c8120e3ef262ce109eea0ee8d97510616864b8d01f8e4d48ebc0fc1486fd490bf8ba3a7f89')
|
||||
#validpgpkeys=('') # TODO https://github.com/plotly/plotly.py/issues/764
|
||||
|
||||
build() {
|
||||
cd $srcdir/$_pkgname-$pkgver
|
||||
python setup.py build
|
||||
prepare() {
|
||||
# Create a copy for the python2 package
|
||||
cp -r "${_pypiname}-${pkgver}" "python2-${_pypiname}-${pkgver}"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$_pkgname-$pkgver
|
||||
python setup.py install --root="$pkgdir" --optimize=1
|
||||
package_python-plotly() {
|
||||
pkgdesc="An interactive, browser-based graphing library for Python3"
|
||||
depends=('python' 'python-requests' 'python-pytz' 'python-six')
|
||||
|
||||
cd "${srcdir}/${_pypiname}-${pkgver}"
|
||||
python setup.py install --root="${pkgdir}" --optimize=1
|
||||
|
||||
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
package_python2-plotly() {
|
||||
pkgdesc="An interactive, browser-based graphing library for Python2"
|
||||
depends=('python2' 'python2-requests' 'python2-pytz' 'python2-six')
|
||||
|
||||
cd "${srcdir}/python2-${_pypiname}-${pkgver}"
|
||||
python2 setup.py install --root="${pkgdir}" --optimize=1
|
||||
|
||||
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user