diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2023-01-01 21:04:39 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2023-01-01 21:04:39 +0100 |
| commit | e9869fce898d7e8ad7c739bf98e89bd553e90feb (patch) | |
| tree | 7caf5e668b6cddee88ada15bc398dbefb8bd4dae /opcut/PKGBUILD | |
init
Diffstat (limited to 'opcut/PKGBUILD')
| -rw-r--r-- | opcut/PKGBUILD | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/opcut/PKGBUILD b/opcut/PKGBUILD new file mode 100644 index 0000000..5aa8a23 --- /dev/null +++ b/opcut/PKGBUILD @@ -0,0 +1,22 @@ +pkgname=opcut +pkgver=0.4.7 +pkgrel=1 +pkgdesc="Cutting stock problem optimizer" +url="https://github.com/bozokopic/opcut" +license=('GPL3') +arch=('any') +depends=('python-aiohttp' 'python-hat-aio' 'python-hat-json' 'python-cairo') +makedepends=('python-hat-doit' 'python-installer' 'yarn') +source=("https://github.com/bozokopic/opcut/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('772191f7ca5995c205a15f3218b7d305a422f65888b1e16dbb3cf1b6f0b8547d') + +build() { + cd "$srcdir/$pkgname-$pkgver" + SKIP_CROSS_COMPILE=1 python -m doit +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + python -m installer --destdir="$pkgdir" build/py/dist/*.whl + install -D -m 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} |
