0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
Tee KOBAYASHI fc7b0651e0 csh: Fix DT_RUNPATH
* Respect LDFLAGS
2023-01-12 04:26:40 +00:00

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
}