summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJameson Pugh2016-07-09 19:25:49 -0400
committerJameson Pugh2016-07-09 19:25:49 -0400
commit92216f120ab16ac84ea7645eecb0eafa33e52b84 (patch)
tree83b2e7abb1f55a0d97393cbed5356f347d4dc99a /PKGBUILD
downloadaur-92216f120ab16ac84ea7645eecb0eafa33e52b84.tar.gz
initial release
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..21523301c17
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Jameson Pugh <imntreal@gmail.com>
+
+pkgname=python-pocketsphinx-git
+pkgver=r68.24ab446
+pkgrel=1
+pkgdesc='Python interface to CMU SphinxBase and PocketSphinx libraries'
+arch=('i686' 'x86_64')
+url='https://github.com/bambocher/pocketsphinx-python'
+license=('BSD')
+depends=('python' 'swig')
+makedepends=('git')
+source=('python-pocketsphinx::git+https://github.com/cmusphinx/pocketsphinx-python.git')
+sha256sums=('SKIP')
+_gitname='python-pocketsphinx'
+
+pkgver() {
+ cd "${_gitname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
+}
+
+prepare() {
+ cd "${srcdir}/${_gitname}"
+
+ # Should I do a status before init?
+ git submodule init
+ git submodule update
+}
+
+build() {
+ cd "${srcdir}/${_gitname}"
+
+ python setup.py build
+}
+package() {
+ cd "${srcdir}/${_gitname}"
+
+ python setup.py install --root="${pkgdir}/" --optimize=1
+}
+
+# vim: set ts=2 sw=2 ft=sh noet: