0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-19 16:52:16 +00:00
2024-11-23 23:58:24 +05:30

21 lines
822 B
Bash

TERMUX_PKG_HOMEPAGE="https://github.com/n-t-roff/sc"
TERMUX_PKG_DESCRIPTION="A vi-like spreadsheet calculator"
TERMUX_PKG_LICENSE="Public Domain"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="7.16-1.1.3"
TERMUX_PKG_SRCURL=https://github.com/n-t-roff/sc/archive/refs/tags/$(sed 's/-/_/' <<< $TERMUX_PKG_VERSION).tar.gz
TERMUX_PKG_SHA256=a734a399967f6a74772e9f169614b803d29c856b04fe289f965ab919feb7c625
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_SED_REGEXP='s/_/-/'
TERMUX_PKG_DEPENDS="ncurses"
TERMUX_PKG_BUILD_IN_SRC=true
# n-t-roff-sc is a maintained fork of sc and thus replaces the original
TERMUX_PKG_CONFLICTS="sc"
TERMUX_PKG_REPLACES="sc"
TERMUX_PKG_PROVIDES="sc"
termux_step_post_configure () {
CFLAGS+=" -I$TERMUX_PREFIX/include"
sed -i "s|prefix=/usr/local|prefix=$TERMUX_PREFIX|g" Makefile
}