dmidecode: moved to github
[packages.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 PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/tcsh
22   SECTION:=utils
23   CATEGORY:=Utilities
24   TITLE:=Enhanced Berkeley UNIX C shell
25   DEPENDS:=+libncurses
26   URL:=http://www.tcsh.org/
27 endef
28
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.
38 endef
39
40 define Package/tcsh/postinst
41 #!/bin/sh
42 grep tcsh $${IPKG_INSTROOT}/etc/shells || \
43         echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
44         echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
45 endef
46
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
51 endef
52
53 $(eval $(call BuildPackage,tcsh))