aboutsummaryrefslogblamecommitdiffstats
path: root/community/libsecp256k1/APKBUILD
blob: 1a0e226b29a30f842fcfc36fbac4d10052b53247 (plain) (tree)
1
2
3
4


                                             
        
































                                                                                                                                                                                                        
# Maintainer: Michał Adamski <michal@ert.pl>
pkgname=libsecp256k1
pkgver=0_git20201009
pkgrel=1
_gitrev=63150ab4da1ef13ebfb4396064e1ff501dbd015e
pkgdesc="Optimized C library for EC operations on curve secp256k1"
url="https://github.com/bitcoin-core/secp256k1"
arch="all"
license="MIT"
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"
source="https://github.com/bitcoin-core/secp256k1/archive/$_gitrev/secp256k1-$_gitrev.tar.gz"
builddir="$srcdir/secp256k1-$_gitrev"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--enable-module-recovery
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="e3b93b3d973cb37d9900f9accdb63483a30a8422abf46d5dc6c2fd814deba27cc5865b643c3d3c9a8c38f020e330559de046656a5a1ab9f4929cbc2d53b33abc  secp256k1-63150ab4da1ef13ebfb4396064e1ff501dbd015e.tar.gz"