22
33_pkgname=' dsnote'
44pkgname=" ${_pkgname} "
5- pkgver=4.7 .1
6- pkgrel=2
5+ pkgver=4.8 .1
6+ pkgrel=1
77pkgdesc=" Note taking, reading and translating with offline Speech to Text, Text to Speech and Machine Translation"
88arch=(
99 ' x86_64'
@@ -26,7 +26,6 @@ depends=(
2626 ' libxtst'
2727 ' ocl-icd'
2828 ' openblas'
29- ' perl'
3029 ' python>=3.11'
3130 ' qt5-base'
3231 ' qt5-declarative'
@@ -36,6 +35,7 @@ depends=(
3635 ' rubberband'
3736 ' taglib'
3837 ' vulkan-icd-loader'
38+ ' wayland'
3939 ' xz'
4040)
4141makedepends=(
@@ -56,6 +56,7 @@ optdepends=(
5656 ' python-accelerate: Support for Punctuation and Hebrew Diacritics restoration'
5757 ' python-torchaudio: Support for Coqui TTS models'
5858 ' python-transformers: Support for Punctuation and Hebrew Diacritics restoration'
59+ ' ydotool: Support for inserting text into active window in Wayland'
5960)
6061optdepends_x86_64=(
6162 ' amdvlk: Vulkan support for AMD GPU (AMDVLK Open)'
@@ -72,7 +73,7 @@ provides=(${_pkgname})
7273conflicts=(${_pkgname} -git)
7374install=${_pkgname} .install
7475source=(https://github.com/mkiol/dsnote/archive/refs/tags/v${pkgver} .tar.gz)
75- sha256sums=(' 6b3c5029b32b272bd5238fb830c3aadce0cec438f7bece13bb304a7e52676b1b ' )
76+ sha256sums=(' 3f9af5a29610477a631dca79ed0db571af2184f714372362bfecc14ec427cd9a ' )
7677
7778build () {
7879 cd " ${srcdir} /${_pkgname} -${pkgver} "
@@ -109,9 +110,13 @@ build() {
109110 FULL_BUILD=true
110111
111112 if [[ " ${CARCH} " == " x86_64" ]]; then
112- # Build for CUDA if needed package is found
113- pacman -Qi cuda & > /dev/null && $FULL_BUILD && CMAKE+=" -DBUILD_WHISPERCPP_CUBLAS=ON -DCMAKE_CUDA_ARCHITECTURES=native"
114- pacman -Qi cuda & > /dev/null && $FULL_BUILD && export CUDA_PATH=/opt/cuda
113+ pacman -Qi cuda & > /dev/null && HAS_CUDA=true || HAS_CUDA=false
114+
115+ if [[ $HAS_CUDA = true ]] && [[ $FULL_BUILD = true ]]; then
116+ CMAKE+=" -DBUILD_WHISPERCPP_CUBLAS=ON -DCMAKE_CUDA_ARCHITECTURES=native"
117+ export CUDA_PATH=/opt/cuda
118+ export NVCC_APPEND_FLAGS=" -std=c++17 --compress-mode=size --split-compile=0 -Wno-deprecated-gpu-targets"
119+ fi
115120 fi
116121
117122 CI_BUILD=false
0 commit comments