Skip to content
Snippets Groups Projects
Commit 55728234 authored by Stuart Cardall's avatar Stuart Cardall Committed by Natanael Copa
Browse files
parent 4cc2cd59
No related branches found
No related tags found
No related merge requests found
......@@ -2,18 +2,16 @@
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=libsodium
pkgver=1.0.17
pkgver=1.0.18
pkgrel=0
pkgdesc="P(ortable|ackageable) NaCl-based crypto library"
url="https://github.com/jedisct1/libsodium"
arch="all"
license="ISC"
subpackages="$pkgname-dev"
subpackages="$pkgname-static $pkgname-dev"
source="https://download.libsodium.org/$pkgname/releases/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -22,13 +20,18 @@ build() {
}
check() {
cd "$builddir"
make check
}
static() {
pkgdesc="libsodium static libraries"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="7cc9e4f11e656008ce9dff735acea95acbcb91ae4936de4d26f7798093766a77c373e9bd4a7b45b60ef8a11de6c55bc8dcac13bebf8c23c671d0536430501da1 libsodium-1.0.17.tar.gz"
sha512sums="17e8638e46d8f6f7d024fe5559eccf2b8baf23e143fadd472a7d29d228b186d86686a5e6920385fe2020729119a5f12f989c3a782afbd05a8db4819bb18666ef libsodium-1.0.18.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment