# Maintainer: Bozo Kopic pkgname=opcut pkgver=0.4.10 pkgrel=1 pkgdesc="Cutting stock problem optimizer" url="https://github.com/bozokopic/opcut" license=('GPL3') arch=('x86_64' 'armv7l' 'aarch64') depends=('python-aiohttp' 'python-hat-aio' 'python-hat-json' 'python-cairo') makedepends=('python-build' 'python-hat-doit' 'python-installer' 'yarn') source=("https://github.com/bozokopic/opcut/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('cc6daaa378bf6c8e2790842749ff52705c8660dff41b0b1bfd44480f0b13336a') build() { cd "$srcdir/$pkgname-$pkgver" python -m build --wheel --no-isolation } package() { cd "$srcdir/$pkgname-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl install -D -m 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE }