aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2019-05-31 10:07:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-05 16:22:32 +0000
commit5572823477a1387d56d05e9b47df3ccfcbd79787 (patch)
tree4956bc6efd805b490d267688778c9b66bde6065a
parent4cc2cd59760c23d36104e5c313686443e83a1f49 (diff)
downloadaports-5572823477a1387d56d05e9b47df3ccfcbd79787.tar.bz2
aports-5572823477a1387d56d05e9b47df3ccfcbd79787.tar.xz
main/libsodium: upgrade to 1.0.18
* https://github.com/jedisct1/libsodium/blob/master/ChangeLog
-rw-r--r--main/libsodium/APKBUILD17
1 files changed, 10 insertions, 7 deletions
diff --git a/main/libsodium/APKBUILD b/main/libsodium/APKBUILD
index eb65691c8b..45d2bfaf7a 100644
--- a/main/libsodium/APKBUILD
+++ b/main/libsodium/APKBUILD
@@ -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"