Package Details: python-webrtcvad 2.0.10-2

Git Clone URL: https://aur.archlinux.org/python-webrtcvad.git (read-only, click to copy)
Package Base: python-webrtcvad
Description: Python interface to the Google WebRTC Voice Activity Detector (VAD)
Upstream URL: https://pypi.org/project/webrtcvad/2.0.10
Licenses: MIT
Provides: python-webrtcvad
Submitter: kugland
Maintainer: kugland (Althorion)
Last Packager: kugland
Votes: 4
Popularity: 0.29
First Submitted: 2020-02-20 05:11
Last Updated: 2021-04-12 20:47

Latest Comments

alex.shpilkin commented on 2021-03-23 15:21

Also, because the CPython C ABI is potentially incompatible across Python versions (and therefore built extension modules include the Python version in their file name), it’s probably a good idea to bump pkgrel whenever a new CPython version is released to official Arch repositories, even if the source and the PKGBUILD are both completely unchanged.

alex.shpilkin commented on 2021-03-23 12:38

The package is missing dependencies and is therefore unbuildable in a clean chroot. It also declares itself to be architecture-independent even though it includes native code, and doesn’t install the license text even though “the MIT license” is technically a different text for every package that uses it. Here’s a fix (don’t forget to also bump pkgrel if necessary!):

diff --git a/PKGBUILD b/PKGBUILD
index 70590b3..4d3325d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,9 +5,11 @@ _pkgname="webrtcvad"
 pkgver=2.0.10
 pkgrel=1
 pkgdesc='Python interface to the Google WebRTC Voice Activity Detector (VAD)'
-arch=('any')
+arch=('x86_64')
 url="https://pypi.org/project/$_pkgname/$pkgver"
 license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
 provides=('python-webrtcvad')
 source=("https://files.pythonhosted.org/packages/89/34/e2de2d97f3288512b9ea56f92e7452f8207eb5a0096500badf9dfd48f5e6/$_pkgname-$pkgver.tar.gz")
 sha256sums=('f1bed2fb25b63fb7b1a55d64090c993c9c9167b28485ae0bcdd81cf6ede96aea')
@@ -21,5 +23,6 @@ package() {
        cd ${srcdir}/${_pkgname}-${pkgver}

     python setup.py install --root="${pkgdir}" --optimize=1
+    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }