summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bfd05ca15053d2fe0579fbb6d57163fa132bd874 (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
# Maintainer: aimileus <me at aimileus dot nl>
pkgname=python-snowboy-git
_pkgname=snowboy
pkgver=v1.2.0.r128.g4ee4811
pkgrel=1
pkgdesc="A hotword detection engine - Python bindings"
arch=('x86_64')
url="https://snowboy.kitt.ai/"
license=('Apache')
depends=(
  'python'
  'atlas-lapack'
)
makedepends=(
  'git'
  'python-setuptools'
  'swig'
)
conflicts=('python-snowboy')
provides=('python-snowboy')
source=("git+https://github.com/Kitt-AI/snowboy.git")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgname"
  python setup.py build
}


package() {
  cd "$_pkgname"
  python setup.py install --root="$pkgdir/" --prefix=/usr
}