smlinux/base/libsodium/libsodium.SMBuild

37 lines
823 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libsodium
version=1.0.18
build=1sml
homepage="https://github.com/jedisct1/libsodium"
download="https://github.com/jedisct1/libsodium/archive/refs/tags/$version.tar.gz"
desc="easy-to-use crypto library"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
ac_cv_tls=__thread \
ax_cv_check_cflags___ftls_model_local_dynamic=no \
./configure \
--prefix=/usr \
--disable-ssp \
--disable-static
make
make install DESTDIR=$pkg
cp LICEN?E $pkgdocs/
mkfinalpkg
}
sha512sums="
922647608e7be1acf4f7d901913e15e2acb595c9e53202b5a10b366e19ca4542e9583959096e6560273f01c7594936bd6a9f625d22d4e4582c5e16d6aac5fe96 libsodium-1.0.18.tar.lz
"