summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9690e111724bcfd34d976d61cf53355da5531bc (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
41
42
43
44
# Maintainer: Bipin Kumar <kbipinkumar@pm.me>

pkgname=python-xlmhglite
_module=${pkgname#python-}
pkgver=1.1.1
pkgrel=1
pkgdesc='A minimal fork of the original python-xlmhg package'
arch=('x86_64')
url="https://github.com/GuyTeichman/xlmhglite"
license=(custom:BSD-3)
depends=(
         'python'
         'cython'
         'glibc'
         'python-numpy'
         'python-plotly'
         'python-pandas'
         'python-scipy'
         'python')

makedepends=(
             'python-build'
             'python-installer'
             'python-wheel'
             'python-nose'
             'nasm'
             'python-sphinx'
             'python-sphinx_rtd_theme'
             'python-sphinx-argparse'
            )
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('01855fd1f6664d0ecdaa7d02c3ad9db15343192bfcd550f98ac3f8833fe74d49')

build() {
    cd "$_module-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_module-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 "$srcdir/$_module-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}