diff --git a/srcpkgs/inkscape-silhouette/patches/udev-install.patch b/srcpkgs/inkscape-silhouette/patches/udev-install.patch new file mode 100644 index 00000000000..67be3e49712 --- /dev/null +++ b/srcpkgs/inkscape-silhouette/patches/udev-install.patch @@ -0,0 +1,22 @@ +From 86f552b48c835b5f20208830d287656c9d71874c Mon Sep 17 00:00:00 2001 +From: classabbyamp <5366828+classabbyamp@users.noreply.github.com> +Date: Thu, 2 Jan 2025 15:04:38 -0500 +Subject: [PATCH] Makefile: install udev rules under PREFIX + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 7119820..6f7bb25 100644 +--- a/Makefile ++++ b/Makefile +@@ -22,7 +22,7 @@ VERS=$$(python3 ./sendto_silhouette.py --version) + + DEST=$(DESTDIR)$(PREFIX)/share/inkscape/extensions + LOCALE=$(DESTDIR)$(PREFIX)/share/locale +-UDEV=$(DESTDIR)/lib/udev ++UDEV=$(DESTDIR)$(PREFIX)/lib/udev + INKSCAPE_TEMPLATES=$(DESTDIR)$(PREFIX)/share/inkscape/templates + + # User-specifc inkscape extensions folder for local install diff --git a/srcpkgs/inkscape-silhouette/template b/srcpkgs/inkscape-silhouette/template new file mode 100644 index 00000000000..82211860a4a --- /dev/null +++ b/srcpkgs/inkscape-silhouette/template @@ -0,0 +1,24 @@ +# Template file for 'inkscape-silhouette' +pkgname=inkscape-silhouette +version=1.29 +revision=1 +build_style=gnu-makefile +make_build_target="mo" +make_check_target="test" +hostmakedepends="gettext" +depends="inkscape python3-lxml python3-xmltodict python3-usb python3-libusb1 + python3-numpy python3-matplotlib python3-cssselect wxPython" +checkdepends="python3-pytest umockdev ${depends}" +short_desc="Inkscape extension to drive Silhouette vinyl cutters" +maintainer="classabbyamp " +license="GPL-2.0-only" +homepage="https://github.com/fablabnbg/inkscape-silhouette" +changelog="https://github.com/fablabnbg/inkscape-silhouette/releases" +distfiles="https://github.com/fablabnbg/inkscape-silhouette/archive/refs/tags/v${version}.tar.gz" +checksum=2fbdf9c8fedff331a87eb4d774359094d9d8628e9b5b3de6a68f25287b532f35 +python_version=3 + +post_patch() { + # use python3-usb instead + rm -r silhouette/pyusb-1.0.2 +}