summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa251b51f5dae1648e39607189df293f1628fd19 (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
# Maintainer: peippo <christoph.fink@gmail.com>

pkgname='python-fasttext-git'
pkgdesc="Library for fast text representation and classification – Python bindings"
url="https://github.com/facebookresearch/fastText"

provides=('python-fasttext')
conflicts=('python-fasttext')

pkgver=v0.1.0.r85.g25c3994
pkgrel=1

arch=('any')
license=('BSD')

makedepends=('python-setuptools' 'python2-setuptools')
depends=('pybind11' 'python-future' 'python-numpy' 'python-scipy' 'python-pytorch')

source=("${pkgname}::git+https://github.com/facebookresearch/fastText.git")
md5sums=("SKIP")

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

build() {
  cd "${srcdir}"/python-fasttext-git
  python setup.py build
}

package() {
  cd "${srcdir}/python-fasttext-git"
  python setup.py install --root=${pkgdir} --optimize=1
}