summaryrefslogtreecommitdiff
path: root/repo/libsecp256k1/libsecp256k1.xibuild
blob: d9296bf80875a4a2ad8bca6255abb60c751599d9 (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
#!/bin/sh

NAME="libsecp256k1"
DESC="Optimized C library for EC operations on curve secp256k1"
MAKEDEPS=" autoconf automake libtool"

SOURCE="https://github.com/bitcoin-core/secp256k1.git"

prepare() {
	./autogen.sh
}

build() {
	./configure \
		--prefix=/usr \
		--disable-static \
		--enable-module-ecdh \
		--enable-module-recovery
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$PKG_DEST" install
}