This commit is contained in:
2026-05-03 17:18:09 +02:00
parent fcd4772bbe
commit 2ab498c6ff
+11 -2
View File
@@ -3,7 +3,7 @@
pkgname=ffmpeg-full pkgname=ffmpeg-full
pkgver=8.1 pkgver=8.1
pkgrel=1.2 pkgrel=1.3
_whispercpp_ver='1.8.3' _whispercpp_ver='1.8.3'
pkgdesc='Complete solution to record, convert and stream audio and video (all possible features including libfdk-aac)' pkgdesc='Complete solution to record, convert and stream audio and video (all possible features including libfdk-aac)'
arch=('x86_64') arch=('x86_64')
@@ -98,6 +98,7 @@ makedepends=(
'cmake' 'cmake'
'cuda' 'cuda'
'ffnvcodec-headers' 'ffnvcodec-headers'
'gcc14'
'git' 'git'
'gmp' 'gmp'
'libgl' 'libgl'
@@ -143,12 +144,17 @@ build() {
local _pkgconfigdir="${_stagingdir}/lib/pkgconfig" local _pkgconfigdir="${_stagingdir}/lib/pkgconfig"
export PKG_CONFIG_PATH="${_pkgconfigdir}${PKG_CONFIG_PATH:+":${PKG_CONFIG_PATH}"}" export PKG_CONFIG_PATH="${_pkgconfigdir}${PKG_CONFIG_PATH:+":${PKG_CONFIG_PATH}"}"
export CC=gcc-14
export CXX=g++-14
local -a _cmake_opts=( local -a _cmake_opts=(
'-GUnix Makefiles' '-GUnix Makefiles'
'-DBUILD_SHARED_LIBS:BOOL=OFF' '-DBUILD_SHARED_LIBS:BOOL=OFF'
'-DCMAKE_BUILD_TYPE:STRING=None' '-DCMAKE_BUILD_TYPE:STRING=None'
"-DCMAKE_INSTALL_PREFIX:PATH=${_stagingdir}" "-DCMAKE_INSTALL_PREFIX:PATH=${_stagingdir}"
'-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON' '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON'
'-DCMAKE_C_COMPILER=gcc-14'
'-DCMAKE_CXX_COMPILER=g++-14'
'-Wno-dev') '-Wno-dev')
# ffmpeg requires lensfun git master, but lensfun-git package wrongly installs its files to non-standard locations: # ffmpeg requires lensfun git master, but lensfun-git package wrongly installs its files to non-standard locations:
@@ -172,7 +178,8 @@ build() {
-DWHISPER_BUILD_EXAMPLES:BOOL='OFF' \ -DWHISPER_BUILD_EXAMPLES:BOOL='OFF' \
-DWHISPER_BUILD_TESTS:BOOL='OFF' \ -DWHISPER_BUILD_TESTS:BOOL='OFF' \
-DGGML_CUDA:BOOL='ON' \ -DGGML_CUDA:BOOL='ON' \
-DCMAKE_CUDA_ARCHITECTURES='89' -DCMAKE_CUDA_ARCHITECTURES='89' \
-DCMAKE_CUDA_HOST_COMPILER=g++-14
cmake --build build/whisper.cpp --target install cmake --build build/whisper.cpp --target install
cd "ffmpeg-${pkgver}" cd "ffmpeg-${pkgver}"
@@ -183,6 +190,8 @@ build() {
./configure \ ./configure \
--prefix='/usr' \ --prefix='/usr' \
--cc=gcc-14 \
--cxx=g++-14 \
--enable-lto \ --enable-lto \
\ \
--disable-rpath \ --disable-rpath \