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.

58 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:=26ef8ea3dd79fbe5311d80a69d490c0d46151543
  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. TITLE:=Enhanced Berkeley UNIX C shell
  23. DEPENDS:=+libncurses
  24. URL:=http://www.tcsh.org/
  25. endef
  26. define Package/tcsh/description
  27. Tcsh is an enhanced, but completely compatible
  28. version of the Berkeley UNIX C shell (csh). It
  29. is a command language interpreter usable both
  30. as an interactive login shell and a shell
  31. script command processor. It includes a
  32. command-line editor, programmable word
  33. completion, spelling correction, a history
  34. mechanism, job control and a C-like syntax.
  35. endef
  36. define Package/tcsh/postinst
  37. #!/bin/sh
  38. grep tcsh $${IPKG_INSTROOT}/etc/shells || \
  39. echo "/bin/tcsh" >> $${IPKG_INSTROOT}/etc/shells
  40. echo "/bin/csh" >> $${IPKG_INSTROOT}/etc/shells
  41. endef
  42. define Package/tcsh/install
  43. $(INSTALL_DIR) $(1)/bin
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcsh $(1)/bin/
  45. ln -sf tcsh $(1)/bin/csh
  46. endef
  47. $(eval $(call BuildPackage,tcsh))