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.

67 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2011-2017 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.22.03
  9. PKG_RELEASE:=1
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:= \
  12. https://astron.com/pub/tcsh/ \
  13. https://astron.com/pub/tcsh/old \
  14. https://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh \
  15. https://ftp.funet.fi/pub/mirrors/ftp.astron.com/pub/tcsh/old
  16. PKG_HASH:=be2cfd653d2a0c7f506d2dd14c12324ba749bd484037be6df44a3973f52262b7
  17. PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
  18. PKG_LICENSE:=BSD-3-Clause
  19. PKG_LICENSE_FILES:=Copyright
  20. PKG_CPE_ID:=cpe:/a:tcsh:tcsh
  21. PKG_FIXUP:=autoreconf
  22. PKG_INSTALL:=1
  23. PKG_BUILD_PARALLEL:=1
  24. include $(INCLUDE_DIR)/package.mk
  25. include $(INCLUDE_DIR)/nls.mk
  26. define Package/tcsh
  27. SECTION:=utils
  28. CATEGORY:=Utilities
  29. SUBMENU:=Shells
  30. TITLE:=Enhanced Berkeley UNIX C shell
  31. DEPENDS:=+libncurses $(ICONV_DEPENDS)
  32. URL:=https://www.tcsh.org/
  33. endef
  34. define Package/tcsh/description
  35. Tcsh is an enhanced, but completely compatible
  36. version of the Berkeley UNIX C shell (csh). It
  37. is a command language interpreter usable both
  38. as an interactive login shell and a shell
  39. script command processor. It includes a
  40. command-line editor, programmable word
  41. completion, spelling correction, a history
  42. mechanism, job control and a C-like syntax.
  43. endef
  44. define Package/tcsh/postinst
  45. #!/bin/sh
  46. grep tcsh $${IPKG_INSTROOT}/etc/shells || { \
  47. echo "/bin/tcsh"
  48. echo "/bin/csh"
  49. } >> $${IPKG_INSTROOT}/etc/shells
  50. endef
  51. define Package/tcsh/install
  52. $(INSTALL_DIR) $(1)/bin
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tcsh $(1)/bin/
  54. ln -sf tcsh $(1)/bin/csh
  55. endef
  56. $(eval $(call BuildPackage,tcsh))