42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'libsecp256k1'
|
|
pkgname=libsecp256k1
|
|
version=0.4.1
|
|
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="31b1a03c7365dbce7aff4be9526243da966c58a8b88b6255556d51b3016492c5"
|
|
|
|
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
|
|
}
|