summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82863fafb4b0ff2f8f506073d28765ef2b5592da (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
# Previous Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Nicolas Pouillard <nicolas.pouillard@gmail.com>
# Contributor: Peter Simons <simons@cryp.to>

pkgbase=zfec
pkgname=python-zfec
pkgver=1.5.7.4
pkgrel=1
pkgdesc="Fast erasure coding tool"
arch=('x86_64')
url='https://github.com/tahoe-lafs/zfec'
license=('GPL')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/z/zfec/zfec-$pkgver.tar.gz")
sha256sums=('1069857218f8babe4084439712720803a11fe91b14f20bc77a96a4e6f4e1111f')

prepare() {
	cd "zfec-$pkgver"
	# deleting SOURCES.txt and excluding tests isn't good enough
	rm -rf zfec/test
}

build() {
	cd "zfec-$pkgver"
	python -m build --wheel --no-isolation
}

package_python-zfec() {
	cd "zfec-$pkgver"
	PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir" dist/*.whl
}