From 1e39df5c6a6725276b59ce3a7e62f2064c95f3d2 Mon Sep 17 00:00:00 2001 From: Arjan Mossel Date: Mon, 1 May 2023 17:55:47 +0200 Subject: [PATCH 1/3] New package: libsecp256k1-0.3.1 --- common/shlibs | 1 + srcpkgs/libsecp256k1-devel | 1 + srcpkgs/libsecp256k1/template | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 120000 srcpkgs/libsecp256k1-devel create mode 100644 srcpkgs/libsecp256k1/template diff --git a/common/shlibs b/common/shlibs index a64330bd7cb9..f9a299664e68 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3667,6 +3667,7 @@ 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.2 libsecp256k1-0.3.1_1 libsecp256k1.so.0 libbitcoin-secp256k1-0.1.0.13_1 libbitcoin.so.0 libbitcoin-system-3.5.0_1 libbitcoin-protocol.so.0 libbitcoin-protocol-3.5.0_1 diff --git a/srcpkgs/libsecp256k1-devel b/srcpkgs/libsecp256k1-devel new file mode 120000 index 000000000000..1a5b8eebddec --- /dev/null +++ b/srcpkgs/libsecp256k1-devel @@ -0,0 +1 @@ +libsecp256k1 \ No newline at end of file diff --git a/srcpkgs/libsecp256k1/template b/srcpkgs/libsecp256k1/template new file mode 100644 index 000000000000..1d9d9c10549e --- /dev/null +++ b/srcpkgs/libsecp256k1/template @@ -0,0 +1,35 @@ +# Template file for 'libsecp256k1' +pkgname=libsecp256k1 +version=0.3.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 " +license="MIT" +homepage="https://github.com/bitcoin-core/secp256k1" +distfiles="https://github.com/bitcoin-core/secp256k1/archive/v${version}.tar.gz" +checksum="0e7bb22c29ed6add5e3631e6a9ed0526f3020a20f3b99e6151918fba6cf6affa" + +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 + } +} From 550b78883843b5e2dbda4bb87a0f897b54b8f7ca Mon Sep 17 00:00:00 2001 From: Arjan Mossel Date: Mon, 1 May 2023 16:13:03 +0200 Subject: [PATCH 2/3] electrum: update to 4.4.1; use bitcoin-core/libsecp256k1 --- srcpkgs/electrum/template | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/srcpkgs/electrum/template b/srcpkgs/electrum/template index dcabed755423..702a2ec7c280 100644 --- a/srcpkgs/electrum/template +++ b/srcpkgs/electrum/template @@ -1,14 +1,14 @@ # Template file for 'electrum' pkgname=electrum -version=4.2.0 -revision=3 +version=4.4.1 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools python3-PyQt5-devel-tools" depends="python3-aiohttp python3-aiohttp_socks python3-aiorpcx python3-bitstring python3-dnspython python3-ecdsa python3-jsonrpclib python3-protobuf python3-pyaes python3-pycryptodomex python3-PyQt5 - python3-qrcode python3-socks python3-cryptography libbitcoin-secp256k1 - python3-certifi" + python3-qrcode python3-socks python3-cryptography libsecp256k1 + python3-certifi libzbar" # Optional dependencies: # btchip - BTChip hardware wallet support # trezor - TREZOR hardware wallet support @@ -19,8 +19,9 @@ short_desc="Lightweight Bitcoin wallet" maintainer="Charles E. Lehner " license="MIT" homepage="https://electrum.org/" +changelog="https://raw.githubusercontent.com/spesmilo/electrum/master/RELEASE-NOTES" distfiles="https://github.com/spesmilo/electrum/archive/${version}.tar.gz" -checksum=3a24c7ed7a2bb47888f308380b8624a3fff3cf3882fd63d904cd9c3ec543fb3b +checksum=62b7978f880657e272aac23096258e7f9c6a6940731de61c69a4e673f5ac6aa0 post_install() { vsed -i -e 's|electrum %u|electrum|' \ From 69de5a5f9b76cc46c2f20073c6a8f58008332896 Mon Sep 17 00:00:00 2001 From: Arjan Mossel Date: Mon, 1 May 2023 19:29:16 +0200 Subject: [PATCH 3/3] Electron-Cash: update to 4.2.14; use bitcoin-core/libsecp256k1 --- srcpkgs/Electron-Cash/template | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/srcpkgs/Electron-Cash/template b/srcpkgs/Electron-Cash/template index 38ca3449b093..a858e3d68cea 100644 --- a/srcpkgs/Electron-Cash/template +++ b/srcpkgs/Electron-Cash/template @@ -1,20 +1,20 @@ # Template file for 'Electron-Cash' pkgname=Electron-Cash -version=4.2.10 -revision=3 +version=4.2.14 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools python3-PyQt5-devel-tools" depends="python3-PyQt5 python3-PyQt5-svg python3-qrcode python3-dateutil python3-jsonrpclib python3-protobuf python3-dnspython python3-requests python3-pysocks python3-stem - python3-ecdsa python3-pyaes python3-pycryptodomex libbitcoin-secp256k1 libzbar + python3-ecdsa python3-pyaes python3-pycryptodomex libsecp256k1 libzbar python3-cryptography>=2.6 python3-pathvalidate python3-psutil" short_desc="Lightweight Bitcoin Cash client" maintainer="Orphaned " license="MIT" homepage="https://electroncash.org" distfiles="https://github.com/Electron-Cash/Electron-Cash/releases/download/${version}/Electron-Cash-${version}.tar.gz" -checksum=2c77258c0e8ccdc42d16cd9bdbc26b47f94b92d9ba8a86d63c25a17ec832b324 +checksum=2b987e7074add9631865ee0bd704c4cd8d736945edc5ed038009d00b3aaa2afb make_check=no # Depends on unpackaged SimpleWebSocketServer post_install() {