[arch-commits] Commit in python-seaborn/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Dec 27 08:02:01 UTC 2016


    Date: Tuesday, December 27, 2016 @ 08:02:01
  Author: felixonmars
Revision: 203015

archrelease: copy trunk to community-staging-any

Added:
  python-seaborn/repos/community-staging-any/
  python-seaborn/repos/community-staging-any/PKGBUILD
    (from rev 203014, python-seaborn/trunk/PKGBUILD)

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Copied: python-seaborn/repos/community-staging-any/PKGBUILD (from rev 203014, python-seaborn/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-27 08:02:01 UTC (rev 203015)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Oliver Sherouse <oliver DOT sherouse AT gmail DOT com>
+
+pkgbase=python-seaborn
+pkgname=('python2-seaborn' 'python-seaborn')
+pkgver=0.7.1
+pkgrel=2
+pkgdesc="Statistical data visualization"
+arch=('any')
+url="http://stanford.edu/~mwaskom/software/seaborn/"
+license=('BSD')
+makedepends=('python2-setuptools' 'python2-pandas' 'python2-matplotlib' 'python2-scipy'
+             'python-setuptools' 'python-pandas' 'python-matplotlib' 'python-scipy')
+source=("https://github.com/mwaskom/seaborn/archive/v${pkgver}.tar.gz")
+md5sums=('f66200e3dbf0ebdd9bbdeba73303c974')
+
+prepare() {
+  cd "$srcdir"
+  cp -a seaborn-${pkgver} seaborn-py2-${pkgver}
+}
+
+build() {
+  msg "Building Python2"
+  cd "$srcdir"/seaborn-py2-${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/seaborn-${pkgver}
+  python setup.py build
+}
+
+package_python2-seaborn() {
+  depends=('python2-pandas' 'python2-matplotlib' 'python2-scipy')
+  optdepends=('python2-statsmodels: for some advanced statistical plots')
+
+  cd "$srcdir"/seaborn-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-seaborn() {
+  depends=('python-pandas' 'python-matplotlib' 'python-scipy')
+  optdepends=('python-statsmodels: for some advanced statistical plots')
+
+  cd "$srcdir"/seaborn-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list