# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=py3-axolotl-curve25519
_pkgname="python-${pkgname#py3-}"
pkgver=0.4.1b
_pkgver=0.4.1-2
pkgrel=8
pkgdesc="A python wrapper for curve25519 library with ed25519 signatures"
options="!check" # No testsuite
url="https://github.com/tgalal/python-axolotl-curve25519"
arch="all"
license="GPL-3.0-only"
makedepends="py3-setuptools python3-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/tgalal/$_pkgname/archive/$_pkgver.tar.gz
	gcc14-int-conversion.patch"
builddir="$srcdir"/$_pkgname-$_pkgver

replaces="py-axolotl-cuve25519" # Backwards compatibility
provides="py-axolotl-cuve25519=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
cbc7c6caa47a9a811640c247a1be727d7b1b68bcdb4c5336e02b4d1eaf9fd2c57b7438b0da466a379a1c0f3f146756b9b7eea3c9b7945ce88478d4bf0b8a1e0d  py3-axolotl-curve25519-0.4.1b.tar.gz
a9fc27c57a76ee2e8741a1edcd6c6a227b0ab1171546bf985cfd1aaf6e93b9af8e9bd53c687cd30fba1dd66563efbe409b91c2e410c9f7eff9a3db577982915b  gcc14-int-conversion.patch
"
