summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2016-12-19 10:50:33 +0100
committerMichel Zou2016-12-19 10:50:33 +0100
commit3e5783dc16d04767350d74aa495a83f7fb7602e0 (patch)
tree526fe25d5e6105191875a6cb9bb30ca05a5c2e41
parent19bd280ae0b91695725f8a312888b4c80925fd23 (diff)
downloadaur-3e5783dc16d04767350d74aa495a83f7fb7602e0.tar.gz
3.5.0
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD29
2 files changed, 30 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ee114728b65..bc34ff37c6f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,19 @@
+# Generated by mksrcinfo v8
+# Mon Dec 19 09:50:32 UTC 2016
pkgbase = python-speechrecognition
pkgdesc = Google-powered speech recognition for Python
- pkgver = 1.1.1
+ pkgver = 3.5.0
pkgrel = 1
url = https://github.com/Uberi/speech_recognition
arch = i686
arch = x86_64
license = MIT
- depends = python
- source = https://github.com/Uberi/speech_recognition/archive/1.1.1.tar.gz
- md5sums = 9abba0588c884a2b350a718d9c713a04
+ source = https://github.com/Uberi/speech_recognition/archive/3.5.0.tar.gz
+ md5sums = 7ce812588cadb2e721c5db62a48c5ecb
pkgname = python-speechrecognition
+ depends = python
+
+pkgname = python2-speechrecognition
+ depends = python2
diff --git a/PKGBUILD b/PKGBUILD
index 9d5d79e9d2a..76d47d57b7c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,35 @@
-# Maintainer: Drew DeVault <sir@cmpwn.com>
-pkgname=python-speechrecognition
+pkbase=python-speechrecognition
+pkgname=('python-speechrecognition' 'python2-speechrecognition')
_pkgname=speech_recognition
-pkgver=1.1.1
+pkgver=3.5.0
pkgrel=1
pkgdesc="Google-powered speech recognition for Python"
arch=('i686' 'x86_64')
url="https://github.com/Uberi/speech_recognition"
license=('MIT')
-depends=('python')
-source=(https://github.com/Uberi/speech_recognition/archive/1.1.1.tar.gz)
-md5sums=('9abba0588c884a2b350a718d9c713a04')
+source=(https://github.com/Uberi/speech_recognition/archive/${pkgver}.tar.gz)
+md5sums=('7ce812588cadb2e721c5db62a48c5ecb')
+
+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() {
+package_python-speechrecognition() {
+ depends=('python')
cd $srcdir/$_pkgname-$pkgver
- python setup.py install --root=$pkgdir
+ python setup.py install --root=$pkgdir --optimize=1
+}
+
+package_python2-speechrecognition() {
+ depends=('python2')
+ cd $srcdir/$_pkgname-$pkgver-py2
+ python2 setup.py install --root=$pkgdir --optimize=1
}