void-packages/srcpkgs/libsecp256k1/template

42 lines
1.1 KiB
Bash
Raw Normal View History

2023-05-01 17:55:47 +02:00
# Template file for 'libsecp256k1'
pkgname=libsecp256k1
2023-09-09 14:37:26 +02:00
version=0.4.0
2023-05-01 17:55:47 +02:00
revision=1
build_style=gnu-configure
configure_args="--disable-benchmark --disable-coverage --enable-experimental
--enable-module-ecdh --enable-module-recovery --enable-tests
--enable-exhaustive-tests --with-gnu-ld"
hostmakedepends="autoconf automake libtool m4 pkg-config"
short_desc="Optimized C library for EC operations on curve secp256k1"
maintainer="Arjan Mossel <arjanmossel@gmail.com>"
license="MIT"
homepage="https://github.com/bitcoin-core/secp256k1"
distfiles="https://github.com/bitcoin-core/secp256k1/archive/v${version}.tar.gz"
2023-09-09 14:37:26 +02:00
checksum="d7c956606e7f52b7703fd2967cb31d2e21ec90c0b440ff1cc7c7d764a4092b98"
2023-05-01 17:55:47 +02:00
pre_configure() {
./autogen.sh
}
post_install() {
vlicense COPYING
vdoc README.md
}
libsecp256k1-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}
libbitcoin-secp256k1_package() {
depends="libsecp256k1"
short_desc+=" - transitional dummy package"
build_style=meta
}