You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.5 KiB

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