diff options
Diffstat (limited to 'main/libsodium/APKBUILD')
-rw-r--r-- | main/libsodium/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/main/libsodium/APKBUILD b/main/libsodium/APKBUILD new file mode 100644 index 0000000000..8c7d64937a --- /dev/null +++ b/main/libsodium/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Stuart Cardall <developer@it-offshore.co.uk> +# Maintainer: Stuart Cardall <developer@it-offshore.co.uk> +pkgname=libsodium +pkgver=1.0.2 +pkgrel=0 +pkgdesc="P(ortable|ackageable) NaCl-based crypto library" +url="https://github.com/jedisct1/libsodium" +arch="all" +license="ISC" +subpackages="$pkgname-dev" +source="https://github.com/jedisct1/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 + make || return 1 +} + +check() { + cd "$pkgname-$pkgver" + make check || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm "$pkgdir"/usr/lib/*.la +} + +md5sums="dc40eb23e293448c6fc908757738003f libsodium-1.0.2.tar.gz" +sha256sums="961d8f10047f545ae658bcc73b8ab0bf2c312ac945968dd579d87c768e5baa19 libsodium-1.0.2.tar.gz" +sha512sums="15fc47516f0e35906c1c304205fa991e74a273e4e6fc2186b6c16f0e41523de24493e149262b97ef03e4adc221232372ef1f283c4c23f96e4c5d99023d361e14 libsodium-1.0.2.tar.gz" |