blob: 012b6816d1bb69a9aa7a09a3db611130f518359c (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Maintainer: Pellegrino Prevete (dvorak) <pellegrinoprevete@gmail.com>
# Maintainer: Truocolo <truocolo@aol.com>
# Contributor: Bruno Pagani <archange@archlinux.org>
# Contributor: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>
_pkg="secp256k1"
_pkgname="lib${_pkg}"
_majver="0.2"
_minver="0"
pkgname="${_pkgname}-${_majver}"
# _gitcommit=43756da819a235d813e7ecd53eae6df073b53247
# _pkgver=20220630+1625+g43756da
pkgver="${_majver}.${_minver}"
pkgrel=1
pkgdesc="Optimized C library for EC operations on curve ${_pkg}"
arch=(
x86_64
)
url="https://github.com/bitcoin-core/${_pkg}"
license=(
MIT
)
depends=(
glibc
# gmp
)
source=(
# ${url}/archive/${_gitcommit}/${pkgname}-${pkgver}.tar.gz
${url}/archive/refs/tags/v${pkgver}.tar.gz
)
provides=(
"${_pkgname}=${pkgver}"
)
sha256sums=(
'6cb0fd596e6b1a671f96e9ed7e65a047960def73de024e7b39f45a78ab4fc8df'
)
prepare() {
cd \
"${_pkg}-${pkgver}"
autoreconf \
-vfi
}
build() {
local \
_configure_opts=()
_configure_opts=(
--prefix=/usr
--sbindir=/usr/bin
--libexecdir=/usr/bin
--sysconfdir=/etc
--sharedstatedir="/usr/share/${_pkgname}"
--localstatedir="/var/lib/${_pkgname}"
--disable-static
--disable-benchmark
--disable-coverage
--enable-module-ecdh
--enable-module-recovery
--disable-tests
--disable-exhaustive-tests
# --enable-tests
# --enable-exhaustive-tests
--with-gnu-ld
)
_ldflags=(
"${LDFLAGS}"
)
cd \
"${_pkg}-${pkgver}"
# LDFLAGS="${_ldflags[*]}" \
./configure \
"${_configure_opts[@]}"
# LDFLAGS="${_ldflags[*]}" \
make
}
check() {
cd \
"${_pkg}-${pkgver}"
make \
check
}
package() {
cd \
"${_pkg}-${pkgver}"
make \
DESTDIR="${pkgdir}" \
install
install \
-Dm644 \
COPYING \
-t \
"${pkgdir}/usr/share/licenses/${pkgname}"
}
|