aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libsodium/APKBUILD
diff options
context:
space:
mode:
authorIT Offshore <developer@it-offshore.co.uk>2013-11-10 09:58:59 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-11-15 14:51:37 +0000
commitb6f38e06bc6f83474fd5c74632fe0cbd6d11ece8 (patch)
treedacfc548bbd153d18ab5e9c767edd05476b0b2a7 /testing/libsodium/APKBUILD
parent78aed1773bd4a4656ed3e5d24cf0981cb3a0a16d (diff)
downloadaports-b6f38e06bc6f83474fd5c74632fe0cbd6d11ece8.tar.bz2
aports-b6f38e06bc6f83474fd5c74632fe0cbd6d11ece8.tar.xz
testing/libsodium: new aport
P(ortable|ackageable) NaCl-based crypto library https://github.com/jedisct1/libsodium dependency for dnscrypt-proxy
Diffstat (limited to 'testing/libsodium/APKBUILD')
-rw-r--r--testing/libsodium/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/libsodium/APKBUILD b/testing/libsodium/APKBUILD
new file mode 100644
index 0000000000..aab51b8c02
--- /dev/null
+++ b/testing/libsodium/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: IT Offshore <developer@it-offshore.co.uk>
+# Maintainer:
+pkgname=libsodium
+pkgver=0.4.5
+pkgrel=0
+pkgdesc="P(ortable|ackageable) NaCl-based crypto library"
+url="https://github.com/jedisct1/libsodium"
+arch="all"
+license="custom:ISC"
+depends=""
+options=""
+install=""
+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
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="3a97d2c29ec0133e334036e3f19d0741 libsodium-0.4.5.tar.gz"
+sha256sums="7ad5202df53eeac0eb29b064ae5d05b65d82b2fc1c082899c9c6a09b0ee1ac32 libsodium-0.4.5.tar.gz"
+sha512sums="6105bb91982e040420312f042bb71547f0208ed9b2928b1740a68134b82dd4566f18c0761b8959a85d13b6770edbd977d989bc74eabc9bfa5e0000f5ab5c7b32 libsodium-0.4.5.tar.gz"