summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD21
2 files changed, 7 insertions, 34 deletions
diff --git a/.SRCINFO b/.SRCINFO
index de5256da176..bea3930dac8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,3 @@
-# Generated by mksrcinfo v8
-# Sun May 27 12:19:04 UTC 2018
pkgbase = python-speechrecognition
pkgdesc = Google-powered speech recognition for Python
pkgver = 3.8.1
@@ -8,24 +6,12 @@ pkgbase = python-speechrecognition
arch = i686
arch = x86_64
license = MIT
- makedepends = flac
makedepends = python-setuptools
- makedepends = python2-setuptools
- makedepends = python-pyaudio
- makedepends = python2-pyaudio
- makedepends = pocketsphinx
- makedepends = python2-monotonic
- source = https://github.com/Uberi/speech_recognition/archive/3.8.1.tar.gz
- sha256sums = 82d3313db383409ddaf3e42625fb0c3518231a1feb5e2ed5473b10b3d5ece7bd
-
-pkgname = python-speechrecognition
depends = python-pyaudio
depends = pocketsphinx
depends = flac
+ source = https://github.com/Uberi/speech_recognition/archive/3.8.1.tar.gz
+ sha256sums = 82d3313db383409ddaf3e42625fb0c3518231a1feb5e2ed5473b10b3d5ece7bd
-pkgname = python2-speechrecognition
- depends = python2-pyaudio
- depends = pocketsphinx
- depends = flac
- depends = python2-monotonic
+pkgname = python-speechrecognition
diff --git a/PKGBUILD b/PKGBUILD
index 2263828ea9e..e391b5cfa8a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,4 @@
-pkbase=python-speechrecognition
-pkgname=('python-speechrecognition' 'python2-speechrecognition')
+pkgname=python-speechrecognition
_pkgname=speech_recognition
pkgver=3.8.1
pkgrel=1
@@ -7,30 +6,18 @@ pkgdesc="Google-powered speech recognition for Python"
arch=('i686' 'x86_64')
url="https://github.com/Uberi/speech_recognition"
license=('MIT')
-makedepends=('flac' 'python-setuptools' 'python2-setuptools' 'python-pyaudio' 'python2-pyaudio' 'pocketsphinx' 'python2-monotonic')
+makedepends=('python-setuptools')
+depends=('python-pyaudio' 'pocketsphinx' 'flac')
source=("https://github.com/Uberi/speech_recognition/archive/${pkgver}.tar.gz")
sha256sums=('82d3313db383409ddaf3e42625fb0c3518231a1feb5e2ed5473b10b3d5ece7bd')
-prepare () {
- cp -r "$srcdir"/$_pkgname-$pkgver "$srcdir"/$_pkgname-$pkgver-py2
-}
-
build() {
cd $srcdir/$_pkgname-$pkgver
python setup.py build
-
- cd $srcdir/$_pkgname-$pkgver-py2
- python2 setup.py build
}
-package_python-speechrecognition() {
- depends=('python-pyaudio' 'pocketsphinx' 'flac')
+package() {
cd $srcdir/$_pkgname-$pkgver
python setup.py install --root=$pkgdir --optimize=1
}
-package_python2-speechrecognition() {
- depends=('python2-pyaudio' 'pocketsphinx' 'flac' 'python2-monotonic')
- cd $srcdir/$_pkgname-$pkgver-py2
- python2 setup.py install --root=$pkgdir --optimize=1
-}