Skip to content

Commit

Permalink
addpkg(x11/shotcut): 24.09.13
Browse files Browse the repository at this point in the history
  • Loading branch information
knyipab committed Sep 22, 2024
1 parent 961b33a commit e404c1d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
13 changes: 13 additions & 0 deletions x11-packages/shotcut/0001-lib-name.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 0c602f84..c5bbe91b 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -148,7 +148,7 @@ MainWindow::MainWindow()
} else {
libJack.unload();
}
- QLibrary libSDL("libSDL2-2.0.so.0");
+ QLibrary libSDL("libSDL2-2.0.so");
if (!libSDL.load()) {
QMessageBox::critical(this, qApp->applicationName(),
tr("Error: This program requires the SDL 2 library.\n\nPlease install it using your package manager. It may be named libsdl2-2.0-0, SDL2, or similar."));
14 changes: 14 additions & 0 deletions x11-packages/shotcut/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE=https://shotcut.org/
TERMUX_PKG_DESCRIPTION="Cross-platform Qt based Video Editor"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=24.09.13
TERMUX_PKG_SRCURL=https://github.com/mltframework/shotcut/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=6a1469c68cfaf4f37e5c9d5692b781f15cc78b893cb9fa3df801ea22507180cd
TERMUX_PKG_DEPENDS="ffmpeg, fftw, frei0r-plugins, mlt, libx264, libvpx, lame, ladspa-sdk, movit, qt6-qtbase, qt6-qtcharts, qt6-qtdeclarative, qt6-qtimageformats, qt6-qtmultimedia, qt6-qttranslations, sdl2"
TERMUX_PKG_BUILD_DEPENDS="qt6-qttools"
TERMUX_PKG_AUTO_UPDATE=true

termux_step_pre_configure(){
CXXFLAGS+=' -Wno-c++11-narrowing'
}

0 comments on commit e404c1d

Please sign in to comment.