summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df8e2e06cd6ddb340677aaca73ae65ff384d14ac (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: Bipin Kumar <kbipinkumar@pm.me>

pkgname=python-grid-strategy
_module=${pkgname#python-}
pkgver=0.0.1
pkgrel=6
pkgdesc='Organize matplotlib plots using different grid strategies'
arch=('any')
url="https://github.com/matplotlib/grid-strategy"
license=('Apache-2.0')
depends=(
        'python'
        'python-numpy'
        'python-matplotlib'
        )
makedepends=(
            'python-build'
            'python-installer'
            'python-wheel'
            'python-setuptools-scm'
            )
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('d8db1c12e6f33eb55ba56a5b19f4848aae862a9a343fea422a353c46ab6ccc23')

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"
}