blob: f747d7626dda52b12f9f2a576dc3d2750d39319b (
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
|
# Maintainer: Luke Shumaker <lukeshu@parabola.nu>
_pkgname=secp256k1
pkgname=${_pkgname}-git
pkgver=20171207
_gitver=c77fc08597960d662eb0df9e4c670c31bdeb227e
pkgrel=1
pkgdesc='Optimized C library for EC operations on curve secp256k1'
arch=(x86_64 i686 armv7h)
url=https://github.com/bitcoin-core/secp256k1/
license=(MIT)
depends=(gmp)
provides=(
${_pkgname}
lib${pkgname}=$pkgver
lib${_pkgname}
lib${_pkgname}.so
)
conflicts=("${provides[@]%=*}")
source=(${_pkgname}-${_gitver}::https://github.com/bitcoin-core/${_pkgname}/archive/${_gitver}.tar.gz)
sha256sums=('19a5d9015458d146cb1494259e4b00de3012ad2521091992e14e07bde711e41e')
prepare() {
cd $_pkgname-$_gitver
./autogen.sh
}
build() {
cd $_pkgname-$_gitver
./configure --prefix=/usr --disable-static
make
}
check() {
cd $_pkgname-$_gitver
make check
}
package() {
cd $_pkgname-$_gitver
make DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|