From 89662880f9184ce0e83fc5a8d196c569c31c9ac6 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 12 Mar 2019 20:45:13 +0000 Subject: user/libsodium: new package. user/nacl: deleted. --- user/libsodium/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 user/libsodium/APKBUILD (limited to 'user/libsodium') diff --git a/user/libsodium/APKBUILD b/user/libsodium/APKBUILD new file mode 100644 index 000000000..a63992976 --- /dev/null +++ b/user/libsodium/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Laurent Bercot +# Maintainer: Laurent Bercot +pkgname=libsodium +pkgver=1.0.17 +pkgrel=0 +pkgdesc="Networking and Cryptography library: sodium fork" +url="https://libsodium.org/" +arch="all" +license="ISC" +subpackages="$pkgname-dev" +source="https://download.libsodium.org/libsodium/releases/$pkgname-$pkgver.tar.gz" + +build() { + cd "$builddir" + ./configure \ + --prefix=/usr \ + --enable-retpoline \ + --with-pthreads \ + --with-gnu-ld + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make install "DESTDIR=$pkgdir" +} + +sha512sums="7cc9e4f11e656008ce9dff735acea95acbcb91ae4936de4d26f7798093766a77c373e9bd4a7b45b60ef8a11de6c55bc8dcac13bebf8c23c671d0536430501da1 libsodium-1.0.17.tar.gz" -- cgit v1.2.3-70-g09d2