summaryrefslogtreecommitdiff
path: root/libs/libsecp256k1/MAKEPKG
blob: 80bb2465b49a71151a75245ac9d40d0ab71e403e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/mkpkg
# description: Optimized C library for EC operations on curve secp256k1
# url: https://github.com/bitcoin-core/secp256k1

name=libsecp256k1
version=0.8.0
release=1
source=("https://github.com/bitcoin-core/secp256k1/archive/refs/tags/v${version}.tar.gz")

sha256sums=(
    "eb52b0e9239dff7dc26be5f9623567141b8720ec47da29eb3c1e0a660d17c8bb"
)

build() {
    cd secp256k1-${version}

    ./autogen.sh

    CONFIG_SHELL=/bin/bash ./configure \
        --prefix=/usr \
        --enable-module-recovery \
        --enable-module-extrakeys \
        --enable-module-schnorrsig \
        --enable-module-ellswift \
        --disable-benchmark \
        --disable-tests \
        --disable-exhaustive-tests \
        --disable-examples

    make
    make DESTDIR=$PKG install

    rm -f $PKG/usr/lib/*.la
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh