termux-packages/packages/jcal/build.sh

21 lines
700 B
Bash
Raw Normal View History

2021-08-22 10:35:58 +02:00
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
}