summaryrefslogtreecommitdiff
path: root/pcr/secp256k1-git/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-12-13 15:02:33 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-12-13 15:02:33 -0500
commitae8645bab6937221d28bd5b765e3f63af3c60632 (patch)
tree44b1911c5fcf4a8ed0ce9ffd2bab250f8b6af18a /pcr/secp256k1-git/PKGBUILD
parentae0dcec58e17f917563f290b3f30005207f6e154 (diff)
downloadabslibre-ae8645bab6937221d28bd5b765e3f63af3c60632.tar.gz
abslibre-ae8645bab6937221d28bd5b765e3f63af3c60632.tar.bz2
abslibre-ae8645bab6937221d28bd5b765e3f63af3c60632.zip
pcr/ring: Update
Diffstat (limited to 'pcr/secp256k1-git/PKGBUILD')
-rw-r--r--pcr/secp256k1-git/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/secp256k1-git/PKGBUILD b/pcr/secp256k1-git/PKGBUILD
new file mode 100644
index 000000000..f747d7626
--- /dev/null
+++ b/pcr/secp256k1-git/PKGBUILD
@@ -0,0 +1,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"
+}