termux-packages/packages/csh/build.sh

28 lines
808 B
Bash

TERMUX_PKG_HOMEPAGE=https://packages.debian.org/sid/csh
TERMUX_PKG_DESCRIPTION="C Shell with process control from 3BSD"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=20110502
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://deb.debian.org/debian/pool/main/c/csh/csh_${TERMUX_PKG_VERSION}.orig.tar.gz
TERMUX_PKG_SHA256=8bcba4fe796df1b9992e2d94e07ce6180abb24b55488384f9954aa61ecd8d68b
TERMUX_PKG_DEPENDS="libandroid-glob, libbsd"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_post_get_source() {
cp $TERMUX_PKG_BUILDER_DIR/LICENSE ./
}
termux_step_pre_configure() {
CFLAGS="${CFLAGS/-Oz/-Os}"
LDFLAGS+=" -Wl,-z,muldefs"
}
termux_step_post_configure() {
make const.h
}
termux_step_post_make_install() {
install -Dm600 -T ./csh.1 ${TERMUX_PREFIX}/share/man/man1/csh.1
}