37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
# Template file for 'rc'
|
|
pkgname=rc
|
|
version=1.7.4
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="ac_cv_sys_restartable_syscalls=no
|
|
$(vopt_if readline --with-edit=gnu)
|
|
$(vopt_if libedit --with-edit=bsd)"
|
|
makedepends="$(vopt_if readline readline-devel)
|
|
$(vopt_if libedit libedit-devel)"
|
|
register_shell="/bin/rc"
|
|
short_desc="An alternative implementation of the plan 9 rc shell"
|
|
maintainer="Leah Neukirchen <chneukirchen@gmail.com>"
|
|
license="zlib"
|
|
homepage="http://tobold.org/article/rc"
|
|
distfiles="http://static.tobold.org/$pkgname/$pkgname-$version.tar.gz"
|
|
checksum=5ed26334dd0c1a616248b15ad7c90ca678ae3066fa02c5ddd0e6936f9af9bfd8
|
|
|
|
build_options="readline libedit static"
|
|
build_options_default="readline"
|
|
|
|
pre_configure() {
|
|
if [ "$build_option_static" ]; then
|
|
CFLAGS+=" -static"
|
|
LDFLAGS+=" -static"
|
|
fi
|
|
}
|
|
|
|
pre_build() {
|
|
sed -i 's/i != SIGCLD/i != SIGCHLD/' fn.c
|
|
sed -i 's/(SIGCLD/(SIGCHLD/g' signal.c
|
|
if [ "$CROSS_BUILD" ]; then
|
|
make CC="$BUILD_CC" CFLAGS="$BUILD_CFLAGS" LIBS= LDFLAGS= \
|
|
sigmsgs.c sigmsgs.h statval.h
|
|
fi
|
|
}
|