blob: 13f5e1b9534ac59af7fcfa848df554ae967dcd6a (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Joaquin Garmendia <joaquingc123 at gmail dot com>
# All my PKGBUILDs can be found in https://www.github.com/joaquingx/PKGBUILDs
pkgname=python-binarytree
pkgver=6.5.1
pkgrel=1
pkgdesc="Python library for studying binary trees"
arch=('any')
url="https://github.com/joowani/binarytree"
license=('MIT')
depends=('python-graphviz' 'python-setuptools-scm')
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-sphinx'
'python-sphinx_rtd_theme')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/b/binarytree/binarytree-$pkgver.tar.gz")
sha256sums=('cbe4f7c300e357494b392b0dd5dc4dfd9971bb7b430e07ee74a30cab92e4b511')
build() {
cd "binarytree-$pkgver"
python -m build --wheel --no-isolation
PYTHONPATH="$PWD" make -C docs man
}
package() {
export PYTHONHASHSEED=0
cd "binarytree-$pkgver"
python -m installer --destdir="$pkgdir/" dist/*.whl
install -Dm644 docs/_build/man/binarytree.1 -t "$pkgdir/usr/share/man/man1/"
local _site="$(python -c 'import site; print(site.getsitepackages()[0])')"
install -d "$pkgdir/usr/share/licenses/$pkgname/"
ln -s \
"$_site/binarytree-$pkgver.dist-info/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/"
}
|