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.

82 lines
2.6 KiB

  1. #
  2. # Copyright (C) 2013-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. PKG_NAME:=zsh
  9. PKG_VERSION:=5.0.6
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=@SF/zsh
  13. PKG_MD5SUM:=7150a6abc2aa1a79d81ed9a282594225
  14. PKG_MAINTAINER:=Vadim A. Misbakh-Soloviov <mva@mva.name>
  15. PKG_LICENSE:=ZSH
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/zsh
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=The Z shell
  22. DEPENDS:=+libncurses +libncursesw +libpcre +librt
  23. URL:=http://www.zsh.org/
  24. endef
  25. define Package/zsh/description
  26. Zsh is a UNIX command interpreter (shell) usable as an interactive
  27. login shell and as a shell script command processor. Of the standard
  28. shells, zsh most closely resembles ksh but includes many enhancements.
  29. Zsh has command line editing, builtin spelling correction, programmable
  30. command completion, shell functions (with autoloading), a history
  31. mechanism, and a host of other features.
  32. endef
  33. define Build/Configure
  34. $(call Build/Configure/Default, \
  35. --bindir=/bin \
  36. --disable-etcdir \
  37. --disable-gdbm \
  38. --enable-pcre \
  39. --enable-multibyte \
  40. --enable-function-subdirs \
  41. --with-tcsetpgrp \
  42. --with-term-lib="ncursesw", \
  43. zsh_cv_sys_nis=no \
  44. zsh_cv_sys_nis_plus=no \
  45. )
  46. # Do not install these functions:
  47. $(SED) 's, Completion/AIX/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules
  48. $(SED) 's, Completion/BSD/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules
  49. $(SED) 's, Completion/Cygwin/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules
  50. $(SED) 's, Completion/Darwin/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules
  51. $(SED) 's, Completion/Debian/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules
  52. $(SED) 's, Completion/Mandriva/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules
  53. $(SED) 's, Completion/Redhat/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules
  54. $(SED) 's, Completion/Solaris/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules
  55. $(SED) 's, Completion/X/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules
  56. $(SED) 's, Completion/openSUSE/\*/\*,,g' $(PKG_BUILD_DIR)/config.modules
  57. # After mucking with 'config.modules', one must call
  58. $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" prep
  59. endef
  60. define Package/zsh/postinst
  61. #!/bin/sh
  62. grep zsh $${IPKG_INSTROOT}/etc/shells || \
  63. echo "/bin/zsh" >> $${IPKG_INSTROOT}/etc/shells
  64. endef
  65. define Package/zsh/install
  66. $(INSTALL_DIR) $(1)/bin
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/zsh $(1)/bin/
  68. $(INSTALL_DIR) $(1)/usr/share/zsh/$(PKG_VERSION)
  69. $(CP) $(PKG_INSTALL_DIR)/usr/share/zsh/$(PKG_VERSION)/* $(1)/usr/share/zsh/$(PKG_VERSION)/
  70. endef
  71. $(eval $(call BuildPackage,zsh))