blob: b34b34b0074b47da24c8c2c871e2a4296257a28a (
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
|
# Maintainer: Xeonacid <h.dwwwwww@gmail.com>
_name=ckzg
pkgname=python-${_name}
pkgver=2.1.5
pkgrel=2
pkgdesc="A minimal implementation of the Polynomial Commitments API for EIP-4844 and EIP-7594, written in C."
arch=(x86_64)
url="https://github.com/ethereum/c-kzg-4844"
license=(MIT)
depends=(glibc python)
makedepends=(git python-build python-installer python-setuptools python-wheel)
source=(git+https://github.com/ethereum/c-kzg-4844.git#tag=v$pkgver
git+https://github.com/supranational/blst.git)
sha512sums=('7b4e63704777bed6bc52f98695c45e6449c879fb3490c1126776f8547cd59226d321f7c33e5a8e89173018f2947117b930319894fbb22a757ec8fced5988c5fc'
'SKIP')
prepare() {
cd c-kzg-4844
git submodule init blst
git config submodule.blst.url ../blst
git -c protocol.file.allow=always submodule update blst
# Conflict with $CFLAGS
sed -i 's/-Werror//g' src/Makefile
}
build() {
cd c-kzg-4844
python -m build --wheel --no-isolation
}
package() {
cd c-kzg-4844
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}
|