mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-03 19:32:57 +02:00
New package: stopmotion-0.9.0
This commit is contained in:
parent
1bcdcd8948
commit
8803900d4e
2 changed files with 48 additions and 0 deletions
35
srcpkgs/stopmotion/patches/nftw-musl.patch
Normal file
35
srcpkgs/stopmotion/patches/nftw-musl.patch
Normal file
|
@ -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) {
|
13
srcpkgs/stopmotion/template
Normal file
13
srcpkgs/stopmotion/template
Normal file
|
@ -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 <murray.calavera@protonmail.com>"
|
||||||
|
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
|
Loading…
Add table
Reference in a new issue