summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76d7d0b0af0e3b80b3f6c8a1d7f4b84375a211cb (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
# Maintainer: redponike <proton (dot) me>
# Contributor: Achmad Fathoni<fathoni.id(at)gmail.com>

pkgname=python-squarify
_pkgname=${pkgname#python-}
pkgver=0.4.4
pkgrel=1
pkgdesc="Pure Python implementation of the squarify treemap layout algorithm"
arch=('any')
url="https://github.com/laserson/squarify"
license=('Apache-2.0')
makedepends=(python-build python-installer python-wheel)
depends=(python)
source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('b8a110c8dc5f1cd1402ca12d79764a081e90bfc445346cfa166df929753ecb46')

build() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    python -m build --wheel --no-isolation
}

package() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    python -m installer --destdir="$pkgdir" dist/*.whl
}