summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 34626da99096d5c04219bbaa495fecdf665a87be (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
pkgname=python-bd_warehouse-git
pkgdesc="A build123d parametric part collection"
pkgver=r152.e3a1f27
pkgrel=1
arch=('any')
url="https://github.com/gumyr/bd_warehouse"
license=('Apache')
depends=('python-build123d' 'python-typing_extensions')
makedepends=('git' 'python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel')
_name=${pkgname#python-}
source=("${_name}::git+https://github.com/gumyr/bd_warehouse.git")
sha256sums=('SKIP')

pkgver() {
  cd $_name
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

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

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