From efc37ebd48435554f68e7c4abb6885769619c916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 30 Jul 2023 00:13:28 +0700 Subject: [PATCH] New package: photofilmstrip-4.0.0 --- .../photofilmstrip/patches/no-img2py.patch | 13 ++++++++++ srcpkgs/photofilmstrip/template | 24 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 srcpkgs/photofilmstrip/patches/no-img2py.patch create mode 100644 srcpkgs/photofilmstrip/template diff --git a/srcpkgs/photofilmstrip/patches/no-img2py.patch b/srcpkgs/photofilmstrip/patches/no-img2py.patch new file mode 100644 index 00000000000..8f6014c2708 --- /dev/null +++ b/srcpkgs/photofilmstrip/patches/no-img2py.patch @@ -0,0 +1,13 @@ +--- a/setup.py ++++ b/setup.py +@@ -187,9 +187,7 @@ class pfs_build(build): + build.run(self) + + def _make_resources(self): +- try: +- from wx.tools.img2py import img2py +- except ImportError: ++ if True: + log.warn("Cannot update image resources! Using images.py from source") + return + diff --git a/srcpkgs/photofilmstrip/template b/srcpkgs/photofilmstrip/template new file mode 100644 index 00000000000..d2050ac4c64 --- /dev/null +++ b/srcpkgs/photofilmstrip/template @@ -0,0 +1,24 @@ +# Template file for 'photofilmstrip' +pkgname=photofilmstrip +version=4.0.0 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools gst1-python3 python3-Sphinx gettext" +depends="python3 gst1-python3 gst1-editing-services python3-Pillow wxPython4" +checkdepends="$depends" +short_desc="Slideshow creator with Ken Burns effect" +maintainer="Đoàn Trần Công Danh " +license="GPL-2.0-or-later" +homepage="https://www.photofilmstrip.org/" +distfiles="https://github.com/PhotoFilmStrip/PFS/archive/refs/tags/v${version}.tar.gz" +checksum=1e0ced0a25f752100a68286833d35fd976a59bafd927eb4eae54b837974578ee + +post_patch() { + vsed -i -e 's/gstreamer1.0-libav/gst-libav/' \ + -e 's/gstreamer1.0-plugins-base/gst-plugins-base1/' \ + -e 's/gstreamer1.0-plugins-good/gst-plugins-good1/' \ + -e 's/gstreamer1.0-plugins-bad/gst-plugins-bad1/' \ + -e 's/gstreamer1.0-plugins-ugly/gst-plugins-ugly1/' \ + photofilmstrip/core/renderer/GStreamerRenderer.py \ + po/*.po +}