2 # Copyright (C) 2013-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=@SF
/zsh
16 PKG_HASH
:=f17916320ffaa844bbd7ce48ceeb5945fc5f3eff64b149b4229bbfbdf3795a9d
17 PKG_MAINTAINER
:=Vadim A. Misbakh-Soloviov
<openwrt-zsh@mva.name
>
22 include $(INCLUDE_DIR
)/package.mk
29 DEPENDS
:=+libncurses
+libncursesw
+libpcre
+librt
30 URL
:=http
://www.zsh.org
/
33 define Package
/zsh
/description
34 Zsh is a UNIX command interpreter
(shell) usable
as an interactive
35 login
shell and
as a
shell script command processor. Of the standard
36 shells
, zsh most closely resembles ksh but includes many enhancements.
37 Zsh has command line editing
, builtin spelling correction
, programmable
38 command completion
, shell functions
(with autoloading
), a history
39 mechanism
, and a host of other features.
42 define Build
/Configure
43 $(call Build
/Configure
/Default
, \
49 --enable-function-subdirs \
51 --with-term-lib
="ncursesw", \
53 zsh_cv_sys_nis_plus
=no \
55 # Do not install these functions:
56 $(SED
) 's, Completion/AIX/\*/\*,,g' $(PKG_BUILD_DIR
)/config.modules
57 $(SED
) 's, Completion/BSD/\*/\*,,g' $(PKG_BUILD_DIR
)/config.modules
58 $(SED
) 's, Completion/Cygwin/\*/\*,,g' $(PKG_BUILD_DIR
)/config.modules
59 $(SED
) 's, Completion/Darwin/\*/\*,,g' $(PKG_BUILD_DIR
)/config.modules
60 $(SED
) 's, Completion/Debian/\*/\*,,g' $(PKG_BUILD_DIR
)/config.modules
61 $(SED
) 's, Completion/Mandriva/\*/\*,,g' $(PKG_BUILD_DIR
)/config.modules
62 $(SED
) 's, Completion/Redhat/\*/\*,,g' $(PKG_BUILD_DIR
)/config.modules
63 $(SED
) 's, Completion/Solaris/\*/\*,,g' $(PKG_BUILD_DIR
)/config.modules
64 $(SED
) 's, Completion/X/\*/\*,,g' $(PKG_BUILD_DIR
)/config.modules
65 $(SED
) 's, Completion/openSUSE/\*/\*,,g' $(PKG_BUILD_DIR
)/config.modules
66 # After mucking with 'config.modules', one must call
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) DESTDIR
="$(PKG_INSTALL_DIR)" prep
70 define Package
/zsh
/postinst
72 grep zsh
$${IPKG_INSTROOT}/etc
/shells || \
73 echo
"/bin/zsh" >> $${IPKG_INSTROOT}/etc
/shells
76 define Package
/zsh
/install
77 $(INSTALL_DIR
) $(1)/bin
78 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/bin
/zsh
$(1)/bin
/
79 $(INSTALL_DIR
) $(1)/usr
/share
/zsh
/$(PKG_VERSION
)
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/zsh
/$(PKG_VERSION
)/* $(1)/usr
/share
/zsh
/$(PKG_VERSION
)/
83 $(eval
$(call BuildPackage
,zsh
))