1 # Maintainer: Bruno Pagani <archange@archlinux.org>
2 # Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
3 # Contributor: Andy Weidenbaum <archbaum@gmail.com>
6 _gitcommit=43756da819a235d813e7ecd53eae6df073b53247
7 pkgver=20220630+1625+g43756da
9 pkgdesc="Optimized C library for EC operations on curve secp256k1"
11 url="https://github.com/bitcoin-core/secp256k1"
14 source=(${url}/archive/${_gitcommit}/${pkgname}-${pkgver}.tar.gz)
15 sha256sums=('e189c22c3e2acda8e4765ba505c3b2f683bbc9fa551672fe004c925f930ae892')
18 cd secp256k1-${_gitcommit}
23 cd secp256k1-${_gitcommit}
27 --libexecdir=/usr/bin \
29 --sharedstatedir=/usr/share/libsecp256k1 \
30 --localstatedir=/var/lib/libsecp256k1 \
34 --enable-module-ecdh \
35 --enable-module-recovery \
37 --enable-exhaustive-tests \
43 cd secp256k1-${_gitcommit}
48 cd secp256k1-${_gitcommit}
49 make DESTDIR="${pkgdir}" install
50 install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}