40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'python-pyqtgraph'
|
|
pkgname=python-pyqtgraph
|
|
version=0.9.10
|
|
revision=3
|
|
wrksrc=${pkgname#*-}-${pkgname#*-}-${version}
|
|
build_style=python-module
|
|
pycompile_module="pyqtgraph"
|
|
noarch=yes
|
|
make_install_args="--no-compile"
|
|
hostmakedepends="python python3"
|
|
depends="python-PyQt4 python-numpy"
|
|
short_desc="Python2 scientific graphics and GUI library"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="MIT"
|
|
homepage="http://www.pyqtgraph.org/"
|
|
distfiles="https://github.com/pyqtgraph/pyqtgraph/archive/pyqtgraph-${version}.tar.gz"
|
|
checksum=44f018ee642454b070433472f23a900921538cec72381e28a26f5cba84973905
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3-pyqtgraph_package() {
|
|
noarch=yes
|
|
depends="python3-PyQt4 python3-numpy"
|
|
pycompile_module="pyqtgraph"
|
|
replaces="python3.4-pyqtgraph>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt
|
|
}
|
|
}
|
|
python3.4-pyqtgraph_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-pyqtgraph>=${version}_${revision}"
|
|
}
|