termux-packages/packages/calcurse/calcurse-caldav.subpackage.sh
Henrik Grimler 1e64bbc8b0 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.
2021-07-11 17:35:42 +02:00

11 lines
366 B
Bash

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
}