summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83a5ea20eec8c4dfccb259628576776fb9ea9756 (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
# $Id$
# Maintainer: Grey Christoforo <first name at last name dot net>

pkgname=python-cq_warehouse-git
pkgver=v0.6.0.r32.gbe12a7d
pkgrel=1
pkgdesc="A cadquery parametric part collection, dev branch"
arch=(x86_64)
url="https://github.com/gumyr/cq_warehouse"
license=('Apache')
conflicts=(python-cq_warehouse)
provides=(python-cq_warehouse)
depends=(
python-cadquery
)
makedepends=(
python-build
python-installer
git
)

source=('git+https://github.com/gumyr/cq_warehouse.git#branch=dev')
sha256sums=('SKIP')

pkgver() {
  cd cq_warehouse
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  #git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd cq_warehouse
  rm -rf dist  # doesn't belong here
}

build() {
  cd cq_warehouse
  python -m build --wheel --no-isolation
}

check() {
  cd cq_warehouse
  python -m unittest -v  # project currently configured incorrectly for this to work
}

package() {
  cd cq_warehouse
  python -m installer --destdir="${pkgdir}" dist/*.whl
  #python -m installer --destdir="${pkgdir}" dist/cq_warehouse-${pkgver}*.whl
}