diff options
author | Johannes Schoepfer <slackbuilds@schoepfer.info> | 2024-05-31 22:59:39 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-06-01 16:45:53 +0700 |
commit | 4b92225deb1ff337f442b9ad7645ea38fc4df028 (patch) | |
tree | aaf329d6dc8bca38ee7dac5ae6b553496eadbcbb | |
parent | 23c27d3a0694a471705d69ddc9dda28537728c1d (diff) |
development/whisper.cpp: Updated for version 1.6.2.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | development/whisper.cpp/README | 6 | ||||
-rw-r--r-- | development/whisper.cpp/whisper.cpp.SlackBuild | 15 | ||||
-rw-r--r-- | development/whisper.cpp/whisper.cpp.info | 8 |
3 files changed, 18 insertions, 11 deletions
diff --git a/development/whisper.cpp/README b/development/whisper.cpp/README index 2c0e887b33d5..aa0315fa3af5 100644 --- a/development/whisper.cpp/README +++ b/development/whisper.cpp/README @@ -14,3 +14,9 @@ recognition (ASR) model: -Partial OpenCL GPU support via CLBlast -OpenVINO Support -C-style API + +This package fails to build if both blas and OpenBLAS are installed. + +Optional autodetected dependencies: +-OpenBLAS || blas +-openvino diff --git a/development/whisper.cpp/whisper.cpp.SlackBuild b/development/whisper.cpp/whisper.cpp.SlackBuild index 3e0abaa2e21f..29b4bfcabe6d 100644 --- a/development/whisper.cpp/whisper.cpp.SlackBuild +++ b/development/whisper.cpp/whisper.cpp.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=whisper.cpp -VERSION=${VERSION:-1.5.5} +VERSION=${VERSION:-1.6.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -83,17 +83,18 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} + -source /usr/share/openvino/setupvars.sh -mkdir -p build +pkg-config openblas && OPENBLAS="-DWHISPER_OPENBLAS=ON" +pkg-config openvino && OPENVINO="-DWHISPER_OPENVINO=ON" && source /usr/share/openvino/setupvars.sh + +mkdir build cd build -pwd cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DWHISPER_OPENVINO=ON \ - -DWHISPER_OPENBLAS=ON \ - -Wno-dev \ + -DCMAKE_SKIP_INSTALL_RPATH=ON \ + $OPENBLAS \ + $OPENVINO \ -DCMAKE_BUILD_TYPE=Release .. make make install/strip DESTDIR=$PKG diff --git a/development/whisper.cpp/whisper.cpp.info b/development/whisper.cpp/whisper.cpp.info index 50c19d2593d9..32f729044a3a 100644 --- a/development/whisper.cpp/whisper.cpp.info +++ b/development/whisper.cpp/whisper.cpp.info @@ -1,10 +1,10 @@ PRGNAM="whisper.cpp" -VERSION="1.5.5" +VERSION="1.6.2" HOMEPAGE="https://github.com/ggerganov/whisper.cpp" -DOWNLOAD="https://github.com/ggerganov/whisper.cpp/archive/v1.5.5/whisper.cpp-1.5.5.tar.gz" -MD5SUM="a4c1d8283381a789c679d0b274ec6c64" +DOWNLOAD="https://github.com/ggerganov/whisper.cpp/archive/v1.6.2/whisper.cpp-1.6.2.tar.gz" +MD5SUM="aa746e62a9faf77222d9ebd9636bedbb" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="openvino OpenBLAS" +REQUIRES="" MAINTAINER="Johannes Schoepfer" EMAIL="slackbuilds@schoepfer.info" |