[packages] libpcre: enable unicode property support (required by php) (#9360)
[openwrt/svn-archive/archive.git] / utils / tcsh / Makefile
1 #
2 # Copyright (C) 2011 Nuno Goncalves <nunojpg@gmail.com>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=tcsh
10 PKG_VERSION:=6.17.00
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=ftp://ftp.astron.com/pub/tcsh/
15 PKG_MD5SUM:=c47de903e3d52f6824c8dd0c91eeb477
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define Package/tcsh
20 SECTION:=utils
21 CATEGORY:=Utilities
22 TITLE:=Enhanced Berkeley UNIX C shell
23 DEPENDS:=+libncurses
24 URL:=http://www.tcsh.org/
25 MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
26 endef
27
28 define Package/tcsh/description
29 Tcsh is an enhanced, but completely compatible
30 version of the Berkeley UNIX C shell (csh). It
31 is a command language interpreter usable both
32 as an interactive login shell and a shell
33 script command processor. It includes a
34 command-line editor, programmable word
35 completion, spelling correction, a history
36 mechanism, job control and a C-like syntax.
37 endef
38
39 define Package/tcsh/postinst
40 #!/bin/sh
41 grep tcsh $${IPKG_INSTROOT}/etc/shells || \
42 echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
43 echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
44 endef
45
46 define Package/tcsh/install
47 $(INSTALL_DIR) $(1)/bin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcsh $(1)/bin/
49 ln -sf tcsh $(1)/bin/csh
50 endef
51
52 $(eval $(call BuildPackage,tcsh))