void-packages/srcpkgs/libsecp256k1/template

42 lines
1.1 KiB
Bash

# Template file for 'libsecp256k1'
pkgname=libsecp256k1
version=0.4.0
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"
checksum="d7c956606e7f52b7703fd2967cb31d2e21ec90c0b440ff1cc7c7d764a4092b98"
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
}