From db5ed771acb631b897d0a671248a18830dcb5bf1 Mon Sep 17 00:00:00 2001 From: Luciogi Date: Mon, 13 Nov 2023 19:31:28 +0500 Subject: [PATCH 1/3] flowblade: update to 2.14.0.2, force x11 ,otherwise it crashes on wayland --- srcpkgs/flowblade/INSTALL.msg | 3 +++ srcpkgs/flowblade/files/enforce-x11.sh | 4 ++++ srcpkgs/flowblade/template | 21 ++++++++++++++++----- 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100755 srcpkgs/flowblade/INSTALL.msg create mode 100644 srcpkgs/flowblade/files/enforce-x11.sh diff --git a/srcpkgs/flowblade/INSTALL.msg b/srcpkgs/flowblade/INSTALL.msg new file mode 100755 index 00000000000000..01eb04f66a1867 --- /dev/null +++ b/srcpkgs/flowblade/INSTALL.msg @@ -0,0 +1,3 @@ +WARNING: Use + /usr/bin/flowblade.sh +to run diff --git a/srcpkgs/flowblade/files/enforce-x11.sh b/srcpkgs/flowblade/files/enforce-x11.sh new file mode 100644 index 00000000000000..da38502411cf77 --- /dev/null +++ b/srcpkgs/flowblade/files/enforce-x11.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Flowblade does not support wayland and it crashes +GDK_BACKEND=x11 /usr/bin/flowblade $@ diff --git a/srcpkgs/flowblade/template b/srcpkgs/flowblade/template index f1a43ae189ed7a..1b4854d63f9593 100644 --- a/srcpkgs/flowblade/template +++ b/srcpkgs/flowblade/template @@ -1,17 +1,28 @@ # Template file for 'flowblade' pkgname=flowblade -version=2.8.0.3 +version=2.14.0.2 revision=1 build_wrksrc=flowblade-trunk build_style=python3-module make_install_args="--install-lib=${DESTDIR}/usr/share/flowblade" hostmakedepends="python3-setuptools" # https://github.com/jliljebl/flowblade/blob/master/flowblade-trunk/docs/DEPENDENCIES.md -depends="frei0r-plugins gmic mlt-python3 python3-Pillow python3-dbus gtk+3 - python3-gobject python3-numpy swh-plugins" +depends="frei0r-plugins gmic mlt7 mlt7-python3 python3-cairo python3-Pillow python3-gobject python3-numpy gtk+3 + swh-plugins gdk-pixbuf pango librsvg SDL_image swh-plugins python3-libusb1" short_desc="Non-linear video editor for Linux" maintainer="shizonic " license="GPL-3.0-or-later" homepage="https://jliljebl.github.io/flowblade/" -distfiles="https://github.com/jliljebl/flowblade/archive/v${version}.tar.gz" -checksum=3753363d15caa6f1901118132a87f92d3b5e843c325775dbd83b30ee4d2a9bbf +distfiles="https://github.com/jliljebl/flowblade/archive/v${version}.tar.gz>${pkgname}-v${version}.tar.gz" +checksum=9ed5766328c90aa9c2a1511f0bd2a15c2495a3a437e484aa7d74b2fb0cd04ae6 +make_check=no # no tests to run + +do_patch() { + # Desktop file should run /usr/bin/flowblade.sh + vsed -i installdata/io.github.jliljebl.Flowblade.desktop -e 's#env.*#/usr/bin/flowblade.sh %f#' +} + +post_install() { + # Enforce X11, otherwise it crashes on wayland + vbin "${FILESDIR}/enforce-x11.sh" flowblade.sh +} From 9ea8d79c53c9d53a020c12b1bde8da6b61a38fd4 Mon Sep 17 00:00:00 2001 From: Luciogi Date: Fri, 17 May 2024 18:24:44 +0500 Subject: [PATCH 2/3] New package: python3-libusb1-3.1.0 --- srcpkgs/python3-libusb1/template | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/python3-libusb1/template diff --git a/srcpkgs/python3-libusb1/template b/srcpkgs/python3-libusb1/template new file mode 100644 index 00000000000000..08470b739edc15 --- /dev/null +++ b/srcpkgs/python3-libusb1/template @@ -0,0 +1,13 @@ +# Template file for 'python3-libusb1' +pkgname=python3-libusb1 +version=3.1.0 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools_scm" +depends="python3 libusb" +short_desc="Python library for USB communication" +maintainer="Luciogi " +license="LGPL-2.1-only, GPL-2.0-only" +homepage="https://github.com/vpelletier/python-libusb1" +distfiles="${PYPI_SITE}/l/libusb1/libusb1-${version}.tar.gz" +checksum=4ee9b0a55f8bd0b3ea7017ae919a6c1f439af742c4a4b04543c5fd7af89b828c From b12d411e28882a8609ad93cfcc4bbe29ccb4adbd Mon Sep 17 00:00:00 2001 From: Luciogi Date: Sat, 18 May 2024 13:54:10 +0500 Subject: [PATCH 3/3] fixup! New package: python3-libusb1-3.1.0 --- srcpkgs/python3-libusb1/template | 1 + 1 file changed, 1 insertion(+) diff --git a/srcpkgs/python3-libusb1/template b/srcpkgs/python3-libusb1/template index 08470b739edc15..de39b747f2312f 100644 --- a/srcpkgs/python3-libusb1/template +++ b/srcpkgs/python3-libusb1/template @@ -4,6 +4,7 @@ version=3.1.0 revision=1 build_style=python3-module hostmakedepends="python3-setuptools_scm" +makedepends="libusb-devel" depends="python3 libusb" short_desc="Python library for USB communication" maintainer="Luciogi "