diff options
Diffstat (limited to 'opcut')
| -rw-r--r-- | opcut/.gitignore | 4 | ||||
| -rw-r--r-- | opcut/PKGBUILD | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/opcut/.gitignore b/opcut/.gitignore new file mode 100644 index 0000000..b204fbc --- /dev/null +++ b/opcut/.gitignore @@ -0,0 +1,4 @@ +/opcut-*.pkg.tar.* +/pkg +/src +/v*.tar.gz 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 +} |
