2014-07-01 20:31:22 +02:00
|
|
|
# Template file for 'rc'
|
|
|
|
pkgname=rc
|
|
|
|
version=1.7.1
|
2014-07-18 17:33:14 +02:00
|
|
|
revision=3
|
2014-07-01 20:31:22 +02:00
|
|
|
build_style=gnu-configure
|
2014-07-18 17:33:14 +02:00
|
|
|
register_shell="/bin/rc"
|
2014-07-01 20:31:22 +02:00
|
|
|
short_desc="An alternative implementation of the plan 9 rc shell"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="custom"
|
|
|
|
homepage="http://tobold.org/article/rc"
|
|
|
|
distfiles="http://static.tobold.org/$pkgname/$pkgname-$version.tar.gz"
|
|
|
|
checksum=1cff23e897a038422458ba01567a5a2650935205862c3bbf73e773807c248240
|
2014-07-12 17:53:51 +02:00
|
|
|
|
|
|
|
build_options="readline libedit static"
|
|
|
|
build_options_default="readline"
|
|
|
|
|
2014-07-12 18:14:19 +02:00
|
|
|
configure_args="ac_cv_sys_restartable_syscalls=no"
|
2014-07-12 17:53:51 +02:00
|
|
|
|
2014-07-12 18:14:19 +02:00
|
|
|
if [ "$build_option_readline" ]; then
|
|
|
|
configure_args+=" --with-readline"
|
|
|
|
makedepends="readline-devel"
|
|
|
|
elif [ "$build_option_libedit" ]; then
|
2014-07-12 17:53:51 +02:00
|
|
|
configure_args+=" --with-editline"
|
2014-07-12 18:14:19 +02:00
|
|
|
makedepends="libedit-devel"
|
2014-07-12 17:53:51 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
if [ "$build_option_static" ]; then
|
|
|
|
CFLAGS+=" -static"
|
|
|
|
LDFLAGS+=" -static"
|
|
|
|
fi
|
|
|
|
}
|