summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d11773d852583af106338dd3aed8d91574b276b5 (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
# Maintainer: peippo <christoph+aur@christophfink.com>

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

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

pkgver=0.9.2
pkgrel=0

arch=('x86_64')
license=('BSD')

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

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/facebookresearch/fastText/archive/v${pkgver}.tar.gz")
sha256sums=("7ea4edcdb64bfc6faaaec193ef181bdc108ee62bb6a04e48b2e80b639a99e27e")

build() {
    cd "${srcdir}/fastText-${pkgver}"
    python setup.py build
}

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

    install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}