# SliTaz package receipt. PACKAGE="libsodium" VERSION="1.0.18" CATEGORY="security" SHORT_DESC="Network communication, cryptography and signaturing library" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="ISC" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://doc.libsodium.org/" WGET_URL="https://download.libsodium.org/libsodium/releases/$TARBALL" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/[0-9].tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure --prefix=/usr \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib }