aboutsummaryrefslogtreecommitdiffstats
path: root/community/libsecp256k1/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libsecp256k1/APKBUILD')
-rw-r--r--community/libsecp256k1/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/libsecp256k1/APKBUILD b/community/libsecp256k1/APKBUILD
new file mode 100644
index 0000000000..1a0e226b29
--- /dev/null
+++ b/community/libsecp256k1/APKBUILD
@@ -0,0 +1,37 @@
+# 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"