mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-10 04:51:47 +00:00
25 lines
1.1 KiB
Bash
25 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://libical.github.io/libical/
|
|
TERMUX_PKG_DESCRIPTION="Libical is an Open Source implementation of the iCalendar protocols and protocol data units"
|
|
TERMUX_PKG_LICENSE="LGPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.0.19"
|
|
TERMUX_PKG_SRCURL=https://github.com/libical/libical/releases/download/v$TERMUX_PKG_VERSION/libical-$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=6a1e7f0f50a399cbad826bcc286ce10d7151f3df7cc103f641de15160523c73f
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_DEPENDS="libc++, libicu"
|
|
TERMUX_PKG_BREAKS="libical-dev"
|
|
TERMUX_PKG_REPLACES="libical-dev"
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" -DSHARED_ONLY=true -DICAL_GLIB=false -DUSE_BUILTIN_TZDATA=true -DPERL_EXECUTABLE=/usr/bin/perl"
|
|
|
|
termux_step_post_get_source() {
|
|
# Do not forget to bump revision of reverse dependencies and rebuild them
|
|
# after SOVERSION is changed.
|
|
local _SOVERSION=3
|
|
|
|
local v=$(sed -En 's/^set\(LIBICAL_LIB_MAJOR_VERSION\s+"?([0-9]+).*/\1/p' \
|
|
CMakeLists.txt)
|
|
if [ "${v}" != "${_SOVERSION}" ]; then
|
|
termux_error_exit "SOVERSION guard check failed."
|
|
fi
|
|
}
|