mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 14:13:36 +00:00
48e6941778
This commit has been automatically submitted by Github Actions.
30 lines
1.0 KiB
Bash
30 lines
1.0 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://libsodium.org/
|
|
TERMUX_PKG_DESCRIPTION="Network communication, cryptography and signaturing library"
|
|
TERMUX_PKG_LICENSE="ISC"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="1.0.20"
|
|
TERMUX_PKG_SRCURL=https://github.com/jedisct1/libsodium/archive/${TERMUX_PKG_VERSION}-RELEASE.tar.gz
|
|
TERMUX_PKG_SHA256=8e5aeca07a723a27bbecc3beef14b0068d37e7fc0e97f51b3f1c82d2a58005c1
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"
|
|
TERMUX_PKG_BREAKS="libsodium-dev"
|
|
TERMUX_PKG_REPLACES="libsodium-dev"
|
|
|
|
termux_step_post_get_source() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION=26
|
|
|
|
local e=$(sed -En 's/^SODIUM_LIBRARY_VERSION=([0-9]+):([0-9]+):([0-9]+).*/\1-\3/p' \
|
|
configure.ac)
|
|
if [ ! "${e}" ] || [ "${_SOVERSION}" != "$(( "${e}" ))" ]; then
|
|
termux_error_exit "SOVERSION guard check failed."
|
|
fi
|
|
}
|
|
|
|
termux_step_pre_configure() {
|
|
if [ "$TERMUX_ARCH" = "aarch64" ]; then
|
|
export CFLAGS_ARMCRYPTO="-march=armv8-a+crypto+aes"
|
|
fi
|
|
}
|