Merge pull request #840 from cjkoenig/update_liburcu
[feed/packages.git] / utils / tcsh / Makefile
1 #
2 # Copyright (C) 2011-2014 OpenWrt.org
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.18.01
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:=6eed09dbd4223ab5b6955378450d228a
16 PKG_LICENSE:=BSD-4-Clause-UC
17 PKG_LICENSE_FILES:=Copyright
18
19 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/tcsh
24 SECTION:=utils
25 CATEGORY:=Utilities
26 TITLE:=Enhanced Berkeley UNIX C shell
27 DEPENDS:=+libncurses
28 URL:=http://www.tcsh.org/
29 endef
30
31 define Package/tcsh/description
32 Tcsh is an enhanced, but completely compatible
33 version of the Berkeley UNIX C shell (csh). It
34 is a command language interpreter usable both
35 as an interactive login shell and a shell
36 script command processor. It includes a
37 command-line editor, programmable word
38 completion, spelling correction, a history
39 mechanism, job control and a C-like syntax.
40 endef
41
42 define Package/tcsh/postinst
43 #!/bin/sh
44 grep tcsh $${IPKG_INSTROOT}/etc/shells || \
45 echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
46 echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
47 endef
48
49 define Package/tcsh/install
50 $(INSTALL_DIR) $(1)/bin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcsh $(1)/bin/
52 ln -sf tcsh $(1)/bin/csh
53 endef
54
55 $(eval $(call BuildPackage,tcsh))