blob: 95c48fcac27fc9ac3432fb2ee865dd5dc470aa04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $Id$
# Maintainer: Grey Christoforo <first name at last name dot net>
pkgname=python-cq-editor-git
pkgver=0.1.2.r49.g7159ef3
pkgrel=1
pkgdesc="CadQuery GUI editor based on PyQT built from git"
arch=('x86_64')
url="https://github.com/CadQuery/CQ-editor"
license=('Apache')
provides=('python-cq-editor')
conflicts=('python-cq-editor')
depends=(
python-cadquery
python-pyqt5
python-qtconsole
python-logbook
python-pyparsing
python-pyqtgraph
python-path.py
python-requests
spyder
python-scipy
python-nptyping)
makedepends=('python-setuptools')
checkdepends=(
python-pytest
python-pytest-qt
python-pytest-mock
)
source=("git+https://github.com/CadQuery/CQ-editor.git")
md5sums=('SKIP')
options=(!strip)
pkgver() {
cd CQ-editor
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd CQ-editor
#curl https://github.com/greyltc/CQ-editor/commit/d3a0899bca7a16e4fd87ba01c69a7bf22afa7a1f.patch | patch -p1 # for https://github.com/CadQuery/CQ-editor/issues/176
#curl https://github.com/greyltc/CQ-editor/commit/dc2734d19b826ab90df6db58fbceb6b6a6ed2229.patch | patch -p1 # for https://github.com/CadQuery/CQ-editor/issues/174 and 122
}
build(){
cd CQ-editor
python setup.py build
}
check() {
cd CQ-editor
#pytest -v --cov
pytest || :
}
package() {
cd CQ-editor
python setup.py install --root="$pkgdir" --skip-build
}
|