summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamLukeYes2021-09-08 23:38:05 +0800
committerSamLukeYes2021-09-08 23:38:05 +0800
commit718e108d378780f002422d037eb9b61c1a0f9a8b (patch)
tree1b4f195f08433e6755016ac7ecc2afa0dc04c4b0
parent4b2f92c2c3eadc28e5d49ca372491792dc409462 (diff)
downloadaur-autosub-git.tar.gz
fix forward compat for auditok
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a8cbbec8c15f..738984815b04 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -17,9 +17,8 @@ pkgbase = autosub-git
depends = python-googletrans
depends = python-google-cloud-speech
depends = python-levenshtein
- optdepends = ffmpeg
optdepends = python-langcodes
- optdepends = ffmpeg-normalize
+ optdepends = ffmpeg-normalize: for audio pre-processing
provides = autosub
source = autosub::git+https://github.com/BingLingGroup/autosub.git#branch=alpha
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index c9de6e20f887..0975dfcad0b0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -23,9 +23,8 @@ depends=(
)
makedepends=('python-setuptools' 'git')
optdepends=(
- 'ffmpeg'
'python-langcodes'
- 'ffmpeg-normalize'
+ 'ffmpeg-normalize: for audio pre-processing'
)
source=("${pkgname%-git}::git+${url}.git#branch=alpha")
sha256sums=('SKIP')
@@ -34,6 +33,7 @@ prepare() {
cd ${srcdir}/autosub
sed -i 's|auditok==|auditok>=|' setup.py
sed -i 's|except DistributionNotFound|except|' autosub/constants.py
+ sed -i 's|sample_width=asource.get_sample_width(),|sample_width=2,channels=1,|' autosub/core.py
}
pkgver() {