[arch-commits] Commit in python-pyqtgraph/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 14:47:23 UTC 2019
Date: Saturday, October 26, 2019 @ 14:47:22
Author: foutrelis
Revision: 520369
archrelease: copy trunk to community-staging-any
Added:
python-pyqtgraph/repos/community-staging-any/
python-pyqtgraph/repos/community-staging-any/PKGBUILD
(from rev 520368, python-pyqtgraph/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-pyqtgraph/repos/community-staging-any/PKGBUILD (from rev 520368, python-pyqtgraph/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 14:47:22 UTC (rev 520369)
@@ -0,0 +1,49 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Windel Bouwman <windel at windel dot nl>
+# Contributor: Jakub Klinkovský <kuba.klinkovsky at gmail.com>
+
+_pkgname=pyqtgraph
+pkgbase=python-$_pkgname
+pkgname=(python-$_pkgname python2-$_pkgname)
+pkgver=0.10.0
+pkgrel=7
+pkgdesc='Scientific Graphics and GUI Library for Python'
+arch=('any')
+url='http://www.pyqtgraph.org'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$_pkgname-$pkgver.tar.gz::$url/downloads/$pkgver/pyqtgraph-$pkgver.tar.gz")
+sha512sums=('4c0a6315c08d65499a9042f418029b8cb1dabb567829c765c3a456dc1df4a8ba1049ccb6980bddb8ef60df504bdc015b87b13064d116cee9e277b15844b3bd7a')
+
+prepare() {
+ cp -a $_pkgname-$pkgver{,-py2}
+}
+
+build() {
+ echo "Building python-$_pkgname $pkgver"
+ cd "$srcdir"/$_pkgname-$pkgver
+ python setup.py build
+
+ echo "Building python2-$_pkgname $pkgver"
+ cd "$srcdir"/$_pkgname-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python-pyqtgraph() {
+ depends=('python' 'python-pyqt5' 'python-numpy')
+ optdepends=('python-opengl: 3d graphics'
+ 'python-pyside2: alternative backend')
+ cd $_pkgname-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pyqtgraph() {
+ depends=('python2' 'python2-pyqt5' 'python2-numpy')
+ optdepends=('python2-opengl: 3d graphics')
+ cd $_pkgname-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list