2 # Copyright (C) 2011 Nuno Goncalves <nunojpg@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=ftp://ftp.astron.com/pub/tcsh/
15 PKG_MD5SUM:=c47de903e3d52f6824c8dd0c91eeb477
17 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
19 include $(INCLUDE_DIR)/package.mk
24 TITLE:=Enhanced Berkeley UNIX C shell
26 URL:=http://www.tcsh.org/
29 define Package/tcsh/description
30 Tcsh is an enhanced, but completely compatible
31 version of the Berkeley UNIX C shell (csh). It
32 is a command language interpreter usable both
33 as an interactive login shell and a shell
34 script command processor. It includes a
35 command-line editor, programmable word
36 completion, spelling correction, a history
37 mechanism, job control and a C-like syntax.
40 define Package/tcsh/postinst
42 grep tcsh $${IPKG_INSTROOT}/etc/shells || \
43 echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
44 echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
47 define Package/tcsh/install
48 $(INSTALL_DIR) $(1)/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcsh $(1)/bin/
50 ln -sf tcsh $(1)/bin/csh
53 $(eval $(call BuildPackage,tcsh))