summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66cf65dd44e662776e454429a68c4e07e80cf51d (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
# Maintainer: pumpkincheshire <sollyonzou@gmail.com>
# Contributor wicastC <wicastchen at hotmail dot com>

pkgname=python-lda
_name=lda
pkgver=2.0.0
pkgrel=2
pkgdesc="Topic modeling with latent Dirichlet allocation using Gibbs sampling"
arch=("i686" "x86_64")
url="https://github.com/lda-project/lda"
license=('custom:MPLv2')
depends=("python" "python-numpy" "python-pbr")
makedepends=("python-setuptools")
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('d8d7c0bc42208902a9e34261b76793a84f59e6c69cfd7ca12ce982cdaf7c3020')

build() {
    cd "$_name-$pkgver"
    python setup.py build
}

package() {
    cd "$_name-$pkgver"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
    install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    #  install -Dm644 $scrdir/README* "${pkgdir}/usr/share/doc/${pkgname}/README"
}