Skip to content

Commit 7400716

Browse files
committed
python-bintrees: initial commit.
1 parent 09d9766 commit 7400716

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

packages/python-bintrees/PKGBUILD

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+

0 commit comments

Comments
 (0)