blob: 52c457dd2214795113faf089dd57853276ace2d7 (
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
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=libsodium
pkgver=1.0.9
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="5d2026e1476e7b2b6aaa20571672d7a7 libsodium-1.0.9.tar.gz"
sha256sums="611418db78c36b2e20e50363d30e9c002a98dea9322f305b5bde56a26cdfe756 libsodium-1.0.9.tar.gz"
sha512sums="3bff0c518eedf76e0e458baa2b5a790cbda33fe4963ea4ffbf713be3baf27ee948d9ba9682b9fb0f2fe57ef20cc896b5758083c074aa9449a75c71710566c96c libsodium-1.0.9.tar.gz"
|