summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 21523301c177c50e0b66f72c4a6952d0da004c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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: