calcurse: split out calcurse-caldav into a subpackage

calcurse-caldav requires python and the httplib2 python module, so
make subpackage depend on python and install httplib2 through pip in
postinst script.
This commit is contained in:
Henrik Grimler 2021-07-11 17:34:37 +02:00
parent 4f6912437a
commit 1e64bbc8b0
2 changed files with 12 additions and 0 deletions

View File

@ -3,9 +3,11 @@ TERMUX_PKG_DESCRIPTION="calcurse is a calendar and scheduling application for th
TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=4.7.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://calcurse.org/files/calcurse-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=0a7c55d07674569d166c0b0e7587b2972d3da8160cdb7d60b1dbd2895803afb0
TERMUX_PKG_DEPENDS="libandroid-support, ncurses"
TERMUX_PKG_RECOMMENDS="calcurse-caldav"
termux_step_pre_configure() {
export ac_cv_lib_pthread_pthread_create=yes

View File

@ -0,0 +1,10 @@
TERMUX_SUBPKG_INCLUDE="bin/calcurse-caldav"
TERMUX_SUBPKG_DESCRIPTION="Sync calcurse with remote caldav calendar"
TERMUX_SUBPKG_DEPENDS="python"
TERMUX_SUBPKG_REPLACES="calcurse (<< 4.7.1-1)"
TERMUX_SUBPKG_BREAKS="calcurse (<< 4.7.1-1)"
termux_step_create_subpkg_debscripts() {
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
echo "pip3 install httplib2" >> postinst
}