From cdeec81d471ae20eedaae807be70cb2a2159e238 Mon Sep 17 00:00:00 2001 From: wmlhwl Date: Thu, 30 Nov 2023 17:23:15 +0100 Subject: [PATCH 1/4] New package: python3-colormath-3.0.0 --- srcpkgs/python3-colormath/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-colormath/template diff --git a/srcpkgs/python3-colormath/template b/srcpkgs/python3-colormath/template new file mode 100644 index 0000000000000..29f75c0f92441 --- /dev/null +++ b/srcpkgs/python3-colormath/template @@ -0,0 +1,17 @@ +# Template file for 'python3-colormath' +pkgname=python3-colormath +version=3.0.0 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3 python3-networkx python3-numpy" +short_desc="Python module that abstracts common color math operations" +maintainer="wmlhwl <7q0dkmw6@anonaddy.me>" +license="BSD-3-Clause" +homepage="https://python-colormath.readthedocs.io/en/latest/" +distfiles="${PYPI_SITE}/c/colormath/colormath-${version}.tar.gz" +checksum=3d4605af344527da0e4f9f504fad7ddbebda35322c566a6c72e28edb1ff31217 + +post_install() { + vlicense LICENSE.txt +} From 50dc4449773d309acb73740bea46129a13975a10 Mon Sep 17 00:00:00 2001 From: wmlhwl Date: Thu, 30 Nov 2023 17:24:25 +0100 Subject: [PATCH 2/4] New package: python3-diskcache-5.6.3 --- srcpkgs/python3-diskcache/template | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/python3-diskcache/template diff --git a/srcpkgs/python3-diskcache/template b/srcpkgs/python3-diskcache/template new file mode 100644 index 0000000000000..ee23641e0f138 --- /dev/null +++ b/srcpkgs/python3-diskcache/template @@ -0,0 +1,13 @@ +# Template file for 'python3-diskcache' +pkgname=python3-diskcache +version=5.6.3 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +short_desc="Disk and file backed cache library, written in pure-Python" +maintainer="wmlhwl <7q0dkmw6@anonaddy.me>" +license="Apache-2.0" +homepage="https://grantjenks.com/docs/diskcache/" +distfiles="${PYPI_SITE}/d/diskcache/diskcache-${version}.tar.gz" +checksum=2c3a3fa2743d8535d832ec61c2054a1641f41775aa7c556758a109941e33e4fc From 95f52bae1a886921b106eb5ae6c0e61d163eadf2 Mon Sep 17 00:00:00 2001 From: wmlhwl Date: Thu, 30 Nov 2023 17:25:23 +0100 Subject: [PATCH 3/4] New package: python3-pyembroidery-1.5.0 --- srcpkgs/python3-pyembroidery/template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 srcpkgs/python3-pyembroidery/template diff --git a/srcpkgs/python3-pyembroidery/template b/srcpkgs/python3-pyembroidery/template new file mode 100644 index 0000000000000..b2987616d4b77 --- /dev/null +++ b/srcpkgs/python3-pyembroidery/template @@ -0,0 +1,17 @@ +# Template file for 'python3-pyembroidery' +pkgname=python3-pyembroidery +version=1.5.0 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +short_desc="Python library for the reading and writing of embroidery files" +maintainer="wmlhwl <7q0dkmw6@anonaddy.me>" +license="MIT" +homepage="https://github.com/EmbroidePy/pyembroidery" +distfiles="${PYPI_SITE}/p/pyembroidery/pyembroidery-${version}.tar.gz" +checksum=9f967d94642b2b8f48d1b883d6c39a39d0c79205cd07174e52ad9ad7fd12bf9d + +post_install() { + vlicense LICENSE +} From 81efb933e56105d59a9d44628306630225f96e80 Mon Sep 17 00:00:00 2001 From: wmlhwl Date: Thu, 30 Nov 2023 17:27:17 +0100 Subject: [PATCH 4/4] New package: inkstitch-3.0.1+20231130 --- srcpkgs/inkstitch/template | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 srcpkgs/inkstitch/template diff --git a/srcpkgs/inkstitch/template b/srcpkgs/inkstitch/template new file mode 100644 index 0000000000000..95642f378f612 --- /dev/null +++ b/srcpkgs/inkstitch/template @@ -0,0 +1,36 @@ +# Template file for 'inkstitch' +pkgname=inkstitch +version=3.0.1+20231130 +revision=1 +_commit=d1f46e4eace9858af4ffdc311db549733613fcca +hostmakedepends="python3 git pkg-config wxPython python3-networkx python3-Flask + python-backports.functools_lru_cache fonttools python3-appdirs python3-Jinja2 + python3-requests python3-diskcache python3-Flask-Cors gobject-introspection + python3-tinycss2 python3-shapely python3-colormath python3-pyembroidery + python3-trimesh" +makedepends="python3-devel cairo-devel" +depends="electron24 python3-colormath python3-pyembroidery python3-lxml + python3-numpy python3-scipy python3-shapely python3-trimesh python3-tinycss2 + python-backports.functools_lru_cache python3-networkx python3-appdirs + python3-Jinja2 python3-requests python3-Flask fonttools python3-diskcache + python3-Flask-Cors" +short_desc="Open-source machine embroidery design platform based on Inkscape" +maintainer="wmlhwl <7q0dkmw6@anonaddy.me>" +license="GPL-3.0-or-later" +homepage="https://inkstitch.org/" +distfiles="https://github.com/inkstitch/inkstitch/archive/${_commit}.tar.gz" +checksum=fda4d2310f30380c28747e290cefe25bb9f994989523facdfc3057b6874a4a9a +python_version=3 + +do_build() { + python3 -m venv --system-site-packages python-venv + source python-venv/bin/activate + pip install git+https://gitlab.com/inkscape/extensions.git@29205f3cc6c39283e190a36d72d01ef42 + make inx + rm -r python-venv +} + +do_install() { + vmkdir usr/share/inkscape/extensions/ + vcopy "${wrksrc}" /usr/share/inkscape/extensions/inkstitch +}