From e9869fce898d7e8ad7c739bf98e89bd553e90feb Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Sun, 1 Jan 2023 21:04:39 +0100 Subject: init --- opcut/.gitignore | 4 ++++ opcut/PKGBUILD | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 opcut/.gitignore create mode 100644 opcut/PKGBUILD (limited to 'opcut') 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 +} -- cgit v1.2.3-70-g09d2