PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/
PKG_MD5SUM:=d44b5dddebd8a7a7309aea6c36fda117
-PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
define Package/bc
$(call Package/bc/Default)
TITLE:=Arbitrary precision calculator language
- DESCRIPTION:=\
- bc is a language that supports arbitrary precision numbers with interactive \\\
+endef
+
+define Package/bc/description
+ bc is a language that supports arbitrary precision numbers with interactive
execution of statements.
endef
$(call Package/bc/Default)
DEPENDS:=bc
TITLE:=Arbitrary precision reverse-polish calculator
- DESCRIPTION:=\
- dc is a reverse-polish desk calculator which supports unlimited precision \\\
+endef
+
+define Package/dc/description
+ dc is a reverse-polish desk calculator which supports unlimited precision
arithmetic.
endef
define Package/bc/install
- install -d -m0755 $(1)/usr/bin
- install -m0755 $(PKG_BUILD_DIR)/bc/bc $(1)/usr/bin/
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/bc/bc $(1)/usr/bin/
endef
define Package/dc/install
- install -d -m0755 $(1)/usr/bin
- install -m0755 $(PKG_BUILD_DIR)/dc/dc $(1)/usr/bin/
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/dc/dc $(1)/usr/bin/
endef
$(eval $(call BuildPackage,bc))