[package] also install rbash (#6927)
[openwrt/svn-archive/archive.git] / utils / dash / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dash
11 PKG_VERSION:=0.5.5.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://gondor.apana.org.au/~herbert/dash/files/
16 PKG_MD5SUM:=7ac832b440b91f5a52cf8eb68e172616
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/dash
21 SECTION:=base
22 CATEGORY:=Base system
23 TITLE:=Debian Almquist shell
24 URL:=http://gondor.apana.org.au/~herbert/dash/
25 endef
26
27 define Package/dash/description
28 A small footprint, POSIX complied unix shell
29 endef
30
31 define Build/Compile
32 $(MAKE) -C $(PKG_BUILD_DIR) \
33 $(TARGET_CONFIGURE_OPTS) \
34 CFLAGS="$(TARGET_CFLAGS)" \
35 BINDIR="/bin" \
36 AWK="awk" \
37 all
38 endef
39
40 define Package/dash/install
41 $(INSTALL_DIR) $(1)/bin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dash $(1)/bin/
43 endef
44
45 $(eval $(call BuildPackage,dash))