diff options
author | Anselmo L. S. Melo | 2016-07-07 00:06:04 -0300 |
---|---|---|
committer | Anselmo L. S. Melo | 2016-07-07 00:07:34 -0300 |
commit | 035df08f15f212aa01231c63ceadf16d31c47f97 (patch) | |
tree | 0a82e18f4efc64b071f229056f9f53efa3bc7759 | |
download | aur-035df08f15f212aa01231c63ceadf16d31c47f97.tar.gz |
Add PKGBUILD for python-ploty-git
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cf3a13cb15be --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Thu Jul 7 03:07:31 UTC 2016 +pkgbase = python-plotly-git + pkgdesc = an interactive, browser-based charting library for python + pkgver = r2079.a1c0a9c + pkgrel = 1 + url = https://plot.ly/python/ + arch = any + license = MIT + makedepends = git + makedepends = python-setuptools + depends = python + depends = python-requests + depends = python-pytz + provides = python-plotly + conflicts = python-plotly + source = python-plotly::git+https://github.com/plotly/plotly.py.git + md5sums = SKIP + +pkgname = python-plotly-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..7bec7b4a61b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/src +/pkg +*.tar.* +/python-* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..931dc49f0071 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Anselmo L. S. Melo <anselmolsm@gmail.com> +pkgname=python-plotly-git +pkgver=r2079.a1c0a9c +pkgrel=1 +pkgdesc="an interactive, browser-based charting library for python" +arch=('any') +url="https://plot.ly/python/" +license=('MIT') +makedepends=('git' 'python-setuptools') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +depends=('python' 'python-requests' 'python-pytz') +source=('python-plotly::git+https://github.com/plotly/plotly.py.git') +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${pkgname%-git}" + python3 setup.py build +} + +package() { + cd "$srcdir/${pkgname%-git}" + python3 setup.py install --root=$pkgdir --optimize=1 --skip-build +} + +# vim:set sw=2 et: |