Skip to content

Commit eba092a

Browse files
committed
Update PKGBUILDs
1 parent 921fc7c commit eba092a

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

arch/git/PKGBUILD

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
_pkgname='dsnote'
44
pkgname="${_pkgname}-git"
5-
pkgver=r1454.8c105b9
5+
pkgver=r1488.921fc7c
66
pkgrel=1
77
pkgdesc="Note taking, reading and translating with offline Speech to Text, Text to Speech and Machine Translation"
88
arch=(
@@ -107,11 +107,12 @@ build() {
107107
# CUDA support is experimental and may break!
108108
# In order to enable support for it, please uncomment
109109
# the respective entry in makedepends_x86_64 (or install
110-
# the dependency package first) and change FULL_BUILD
111-
# value below to true *before* making the build.
110+
# the dependency package first) *before* making the build.
111+
# You can disable CUDA support by changing FULL_BUILD
112+
# below to false before building as well.
112113
##########################################################
113114

114-
FULL_BUILD=false
115+
FULL_BUILD=true
115116

116117
if [[ "${CARCH}" == "x86_64" ]]; then
117118
pacman -Qi cuda &> /dev/null && HAS_CUDA=true || HAS_CUDA=false

arch/release/PKGBUILD

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
_pkgname='dsnote'
44
pkgname="${_pkgname}"
5-
pkgver=4.7.1
6-
pkgrel=2
5+
pkgver=4.8.1
6+
pkgrel=1
77
pkgdesc="Note taking, reading and translating with offline Speech to Text, Text to Speech and Machine Translation"
88
arch=(
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
)
4141
makedepends=(
@@ -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
)
6061
optdepends_x86_64=(
6162
'amdvlk: Vulkan support for AMD GPU (AMDVLK Open)'
@@ -72,7 +73,7 @@ provides=(${_pkgname})
7273
conflicts=(${_pkgname}-git)
7374
install=${_pkgname}.install
7475
source=(https://github.com/mkiol/dsnote/archive/refs/tags/v${pkgver}.tar.gz)
75-
sha256sums=('6b3c5029b32b272bd5238fb830c3aadce0cec438f7bece13bb304a7e52676b1b')
76+
sha256sums=('3f9af5a29610477a631dca79ed0db571af2184f714372362bfecc14ec427cd9a')
7677

7778
build() {
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

Comments
 (0)