1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 20:40:32 +01:00

Use Pypi instead of git

This commit is contained in:
Fernando Cladera
2016-04-21 16:05:53 -03:00
parent 48fb80d650
commit 3dd780d920
2 changed files with 12 additions and 25 deletions

View File

@@ -1,18 +1,16 @@
# Generated by mksrcinfo v8
# Mon Dec 7 14:54:40 UTC 2015
pkgbase = python-plotly
pkgdesc = An interactive, browser-based charting library for python
pkgver = 1.6.12.r715.g20102d6
pkgver = 1.9.9
pkgrel = 1
url = https://plot.ly/python/
arch = i686
arch = x86_64
arch = any
license = MIT
makedepends = git
makedepends = python
makedepends = python-setuptools
depends = python-requests
depends = python-pytz
source = git+https://github.com/plotly/plotly.py.git
source = https://pypi.python.org/packages/source/p/plotly/plotly-1.9.9.tar.gz
md5sums = SKIP
pkgname = python-plotly

View File

@@ -1,35 +1,24 @@
# Maintainer: fclad <fcladera at fcladera.com>
_pkgname=plotly.py
_pkgname=plotly
pkgname=python-plotly
pkgver=r1780.d88c5d0
pkgver=1.9.9
pkgrel=1
pkgdesc="An interactive, browser-based charting library for python"
arch=('i686' 'x86_64')
arch=('any')
url="https://plot.ly/python/"
license=('MIT')
depends=('python-requests' 'python-pytz')
makedepends=('git' 'python' 'python-setuptools')
source=("git+https://github.com/plotly/plotly.py.git")
source=('https://pypi.python.org/packages/source/p/'$_pkgname'/'$_pkgname'-'$pkgver'.tar.gz')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
#[ -d build ] && rm -rf build
#mkdir build
#cd build
#python config.py -auto
python setup.py build
cd $srcdir/$_pkgname-$pkgver
python setup.py build
}
package() {
cd "$srcdir/$_pkgname"
python setup.py install --root="${pkgdir}" --prefix=/usr
cd $srcdir/$_pkgname-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}