From 8803900d4e08d372611946fd402ac2e5b90cbd87 Mon Sep 17 00:00:00 2001 From: ii8 Date: Thu, 12 Jun 2025 15:52:36 +0100 Subject: [PATCH] New package: stopmotion-0.9.0 --- srcpkgs/stopmotion/patches/nftw-musl.patch | 35 ++++++++++++++++++++++ srcpkgs/stopmotion/template | 13 ++++++++ 2 files changed, 48 insertions(+) create mode 100644 srcpkgs/stopmotion/patches/nftw-musl.patch create mode 100644 srcpkgs/stopmotion/template diff --git a/srcpkgs/stopmotion/patches/nftw-musl.patch b/srcpkgs/stopmotion/patches/nftw-musl.patch new file mode 100644 index 00000000000..11f6502b879 --- /dev/null +++ b/srcpkgs/stopmotion/patches/nftw-musl.patch @@ -0,0 +1,35 @@ +--- a/src/technical/util.cpp ++++ b/src/technical/util.cpp +@@ -92,18 +92,18 @@ int removeFileOrDirectory(const char *path, const struct stat *, + if (info->level != 0) { + if (0 != rmdir(path)) { + Logger::get().logWarning("Could not remove directory %s", path); +- return FTW_STOP; ++ return 1; + } + } + break; + default: + if (0 != unlink(path)) { + Logger::get().logWarning("Could not remove file %s", path); +- return FTW_STOP; ++ return 1; + } + break; + } +- return FTW_CONTINUE; ++ return 0; + } + + } +@@ -271,8 +271,8 @@ void Util::linkOrCopyFile(const char* newName, const char* oldName) { + + bool Util::removeDirectoryContents(const char* path) { + static const int maxDescripotorsToConsume = 8; +- return FTW_STOP != nftw(path, removeFileOrDirectory, +- maxDescripotorsToConsume, FTW_PHYS | FTW_DEPTH | FTW_ACTIONRETVAL); ++ return 1 != nftw(path, removeFileOrDirectory, ++ maxDescripotorsToConsume, FTW_PHYS | FTW_DEPTH); + } + + void Util::ensurePathExists(const char* path) { diff --git a/srcpkgs/stopmotion/template b/srcpkgs/stopmotion/template new file mode 100644 index 00000000000..0097761db6e --- /dev/null +++ b/srcpkgs/stopmotion/template @@ -0,0 +1,13 @@ +# Template file for 'stopmotion' +pkgname=stopmotion +version=0.9.0 +revision=1 +build_style=cmake +hostmakedepends="qt6-base qt6-tools" +makedepends="qt6-base-devel qt6-multimedia-devel libxml2-devel libarchive-devel libvorbis-devel" +short_desc="Program to create stop motion animations" +maintainer="ii8 " +license="GPL-2.0-or-later" +homepage="https://invent.kde.org/multimedia/stopmotion" +distfiles="https://invent.kde.org/multimedia/stopmotion/-/archive/${version}/stopmotion-${version}.tar.gz" +checksum=81875b775a2fb40733dae018efa1b01267331cb67d2f80d2c05ddac29466b8e5