# Description: P(ortable|ackageable) NaCl-based crypto library.
# URL: https://github.com/jedisct1/libsodium
# Packager: fanch at nutyx dot org, Sipo
# Depends on: glibc

name=libsodium
version=1.0.12
release=1
source=(https://github.com/jedisct1/$name/releases/download/$version/$name-$version.tar.gz)

build() {
	cd $name-$version
   ./configure --prefix=/usr 
	make
	make check
	make DESTDIR=$PKG install
	install -d -m 755 $PKG/usr/share/licenses/$name
    install -m 644 LICENSE $PKG/usr/share/licenses/$name/LICENSE
}
