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

pkgname=python-cq-kit
pkgver=0.5.1
pkgrel=1
pkgdesc="A python library of CadQuery tools and helpers for building 3D CAD models."
arch=(x86_64)
url="https://github.com/michaelgale/cq-kit"
license=('MIT')
depends=(
#TODO
python-cadquery
)
makedepends=(
python-build
python-installer
)

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/michaelgale/cq-kit/archive/refs/tags/v.${pkgver}.tar.gz")
sha256sums=('f2a74b5c1b761d829512ca1b24bee8c7209cda9a1c9106e7c4db40ca58d09763')

prepare() {
  cd cq-kit-v.${pkgver}
  rm -rf dist
  #curl --silent https://patch-diff.githubusercontent.com/raw/gumyr/cq_warehouse/pull/37.patch | patch -p1
}

build() {
  cd cq-kit-v.${pkgver}
  python -m build --wheel --no-isolation
}

check() {
  cd cq-kit-v.${pkgver}
  #python -m unittest -v  # project currently configured incorrectly for this to work
}

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