Skip to content

Instantly share code, notes, and snippets.

@bdice
Created August 10, 2019 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdice/e2f97fd77986e9b6268db22acffe6197 to your computer and use it in GitHub Desktop.
Save bdice/e2f97fd77986e9b6268db22acffe6197 to your computer and use it in GitHub Desktop.
Arch PKGBUILD for python-vispy with JS submodule
pkgname=python-vispy
pkgver=v0.6.1
pkgrel=2
pkgdesc='A high-performance interactive 2D/3D data visualization library.'
arch=('any')
url='http://vispy.org'
license=('BSD')
depends=('python-numpy')
optdepends=('pyside2: a possible backend'
'python-pyqt5: a possible backend')
source=("git://github.com/vispy/vispy.git#tag=$pkgver"
"git://github.com/vispy/vispy.js.git")
md5sums=('SKIP'
'SKIP')
prepare() {
cd "$srcdir/vispy"
git submodule init
git config submodule.js.url $srcdir/vispy.js
git submodule update
}
build() {
cd "$srcdir/vispy"
python setup.py build
}
package() {
cd "$srcdir/vispy"
python setup.py install --root="$pkgdir/" --optimize=1
install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment