mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 10:12:59 +01:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# 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"
|