aboutsummaryrefslogtreecommitdiffstats
path: root/main/libsodium/APKBUILD
blob: 314bfae335e46b2d82660643f43f1593c76348e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=libsodium
pkgver=1.0.8
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
}

md5sums="0a66b86fd3aab3fe4c858edcd2772760  libsodium-1.0.8.tar.gz"
sha256sums="c0f191d2527852641e0a996b7b106d2e04cbc76ea50731b2d0babd3409301926  libsodium-1.0.8.tar.gz"
sha512sums="8f85e85e699c2b45674befd466e018c9f2ff1333c8fa806da49d9674068c33929bd3463e8908ffcd9c6154d430737e08e0522ac8ed4219e4fffe2e0a7a611c65  libsodium-1.0.8.tar.gz"