summaryrefslogtreecommitdiffstats
path: root/testing/libsodium/APKBUILD
blob: 7401aaa0bb49d40b5cbf125eac0e399dd2eac15f (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
37
38
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=libsodium
pkgver=1.0.0
pkgrel=0
pkgdesc="P(ortable|ackageable) NaCl-based crypto library"
url="https://github.com/jedisct1/libsodium"
arch="all"
license="custom: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
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="3093dabe4e038d09f0d150cef064b2f7  libsodium-1.0.0.tar.gz"
sha256sums="ced1fe3d2066953fea94f307a92f8ae41bf0643739a44309cbe43aa881dbc9a5  libsodium-1.0.0.tar.gz"
sha512sums="c60693130460b307469707854b86fc85733483e9ad9f492e692340cf4fef82dfaf388f890f18380cb6ee569597ef89a1ee4c94d47c10bb4da0703418fec18099  libsodium-1.0.0.tar.gz"