diff --git a/common/shlibs b/common/shlibs index 1db2601afbc..4579135235a 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3430,3 +3430,4 @@ libdwarves_emit.so.1 pahole-1.12_1 libdwarves_reorganize.so.1 pahole-1.12_1 libclthreads.so.2 clthreads-2.4.2_1 libclxclient.so.3 clxclient-3.9.2_1 +libsecp256k1.so.0 libbitcoin-secp256k1-0.1.0.13_1 diff --git a/srcpkgs/libbitcoin-secp256k1-devel b/srcpkgs/libbitcoin-secp256k1-devel new file mode 120000 index 00000000000..527eb8d59d7 --- /dev/null +++ b/srcpkgs/libbitcoin-secp256k1-devel @@ -0,0 +1 @@ +libbitcoin-secp256k1 \ No newline at end of file diff --git a/srcpkgs/libbitcoin-secp256k1/template b/srcpkgs/libbitcoin-secp256k1/template new file mode 100644 index 00000000000..a47025a23ec --- /dev/null +++ b/srcpkgs/libbitcoin-secp256k1/template @@ -0,0 +1,36 @@ +# Template file for 'libbitcoin-secp256k1' +pkgname=libbitcoin-secp256k1 +version=0.1.0.13 +revision=1 +wrksrc="${pkgname#libbitcoin-}-${version}" +build_style=gnu-configure +configure_args="--disable-benchmark --disable-coverage --disable-jni + --disable-openssl-tests --enable-exhaustive-tests --enable-module-recovery + --enable-tests --with-gnu-ld" +hostmakedepends="autoconf automake libtool m4 pkg-config" +short_desc="Optimized C library for EC operations on curve secp256k1" +maintainer="Andy Weidenbaum " +license="MIT" +homepage="https://github.com/libbitcoin/secp256k1" +distfiles="https://github.com/libbitcoin/secp256k1/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz" +checksum=9e48dbc88d0fb5646d40ea12df9375c577f0e77525e49833fb744d3c2a69e727 + +pre_configure() { + ./autogen.sh +} + +post_install() { + vlicense COPYING + vdoc README.md +} + +libbitcoin-secp256k1-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 + } +}