diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-09 11:23:24 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-09 11:23:24 +0000 |
commit | 972706249f7ba39976b1ddfcb5dc4abf8c66ff57 (patch) | |
tree | 28b81e1009e4bd1ed3fbf9108b136ac064dc1927 /main | |
parent | 8bb78c6b4f9286fc4097b6b2997221e45779c4f3 (diff) | |
download | aports-972706249f7ba39976b1ddfcb5dc4abf8c66ff57.tar.bz2 aports-972706249f7ba39976b1ddfcb5dc4abf8c66ff57.tar.xz |
main/libsodium: move from testing
zeromq 4.1 needs it
Diffstat (limited to 'main')
-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" |