# Template file for 'electrum-ecc'
pkgname=electrum-ecc
version=0.0.6
revision=2
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-wheel"
makedepends="python3-devel libsecp256k1-devel"
depends="python3 libsecp256k1"
checkdepends="$depends python3-pytest"
short_desc="Python ctypes wrapper for libsecp256k1"
maintainer="Arjan Mossel <arjanmossel@gmail.com>"
license="MIT"
homepage="https://electrum.org/"
distfiles="https://github.com/spesmilo/electrum-ecc/archive/${version}.tar.gz"
checksum=d51c6a2433d5784359e9c6ace9641d3fe73a97ec9d17d62cc5de5474e0681174

# Use system libsecp256k1 library
export ELECTRUM_ECC_DONT_COMPILE=1

post_install() {
	vlicense LICENSE.txt
}
