From 65c283daac0071939ecb796a10f813e7a851fd12 Mon Sep 17 00:00:00 2001 From: Pooya Moradi Date: Sun, 22 Aug 2021 13:05:58 +0430 Subject: [PATCH] new package: jcal --- packages/jcal/build.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 packages/jcal/build.sh diff --git a/packages/jcal/build.sh b/packages/jcal/build.sh new file mode 100644 index 000000000..ebabe0e9e --- /dev/null +++ b/packages/jcal/build.sh @@ -0,0 +1,20 @@ +TERMUX_PKG_HOMEPAGE="http://nongnu.org/jcal" +TERMUX_PKG_DESCRIPTION="UNIX-cal-like tool to display Jalali (Persian/Iranian) calendar" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="@termux" +TERMUX_PKG_VERSION=0.4.1 +TERMUX_PKG_SRCURL="https://github.com/persiancal/jcal/archive/v$TERMUX_PKG_VERSION.tar.gz" +TERMUX_PKG_SHA256=b55edc605eda0a5b25b8009391dcaeb3c8ba88d1fb3337a071f555983a114c12 +TERMUX_PKG_BUILD_IN_SRC=true + +termux_step_pre_configure() { + cd sources + ./autogen.sh + sed --in-place 's/$RM "$cfgfile"/$RM -f "$cfgfile"/g' configure + TERMUX_PKG_SRCDIR+="/sources" +} + +termux_step_post_configure() { + # removing tests + sed --in-place 's/test_kit//g' sources/Makefile.am +}