void-packages/srcpkgs/libsodium/template

29 lines
806 B
Bash

# Template file for 'libsodium'
pkgname=libsodium
version=1.0.20
revision=1
build_style=gnu-configure
configure_args="lt_cv_prog_compiler_static_works=yes"
short_desc="Modern and easy-to-use crypto library"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="ISC"
homepage="https://libsodium.org/"
changelog="https://raw.githubusercontent.com/jedisct1/libsodium/master/ChangeLog"
distfiles="https://download.libsodium.org/libsodium/releases/libsodium-${version}.tar.gz"
checksum=ebb65ef6ca439333c2bb41a0c1990587288da07f6c7fd07cb3a18cc18d30ce19
post_install() {
vlicense LICENSE
}
libsodium-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}