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

pkgname=python-cq_warehouse
pkgver=0.8.0
pkgrel=1
pkgdesc="A cadquery parametric part collection"
arch=(x86_64)
url="https://github.com/gumyr/cq_warehouse"
license=('Apache')
depends=(
python-cadquery
)
makedepends=(
python-build
python-installer
)

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/gumyr/cq_warehouse/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('150aca4cd339083a0f1184e6c56553ccc3d1a770992f100fd1c31e02ca56b427')

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

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

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

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