File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
2
+ # See COPYING for license details.
3
+
4
+ pkgname=python-bintrees
5
+ _pkgname=bintrees
6
+ pkgver=2.2.0
7
+ pkgrel=4
8
+ pkgdesc=' Package provides Binary-, RedBlack- and AVL-Trees.'
9
+ url=' https://github.com/mozman/bintrees'
10
+ arch=(' x86_64' ' aarch64' )
11
+ license=(' custom' )
12
+ depends=(' python' )
13
+ makedepends=(' python-build' ' python-installer' ' python-wheel'
14
+ ' python-setuptools' ' cython0' )
15
+ source=(" https://github.com/mozman/bintrees/archive/v$pkgver /$pkgname -$pkgver .tar.gz" )
16
+ sha512sums=(' 640b9979ff9ef25fedbc59c9203363039e732b1ecbeda6475126c7c872207e9b790b7c6c8e67457c029f0d5397c28e6767c1c49061693135206eece98bb203bf' )
17
+
18
+ build () {
19
+ cd " $_pkgname -$pkgver "
20
+
21
+ python setup.py build_ext -i
22
+ python -m build --wheel --no-isolation
23
+ }
24
+
25
+ package () {
26
+ cd " $_pkgname -$pkgver "
27
+
28
+ python -m installer --destdir=" $pkgdir " dist/* .whl
29
+
30
+ install -Dm 644 README.rst -t " $pkgdir /usr/share/doc/$pkgname "
31
+ install -Dm 644 LICENSE.txt -t " $pkgdir /usr/share/licenses/$pkgname "
32
+ }
33
+
You can’t perform that action at this time.
0 commit comments