lm-sensors: install libsensors using CP instead of INSTALL_DATA
authorDeng Qingfang <dengqf6@mail2.sysu.edu.cn>
Wed, 12 Jun 2019 16:51:18 +0000 (00:51 +0800)
committerRosen Penev <rosenp@gmail.com>
Fri, 14 Jun 2019 18:44:37 +0000 (11:44 -0700)
INSTALL_DATA turns all of the symlinks to files, increasing size.

Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
(cherry-picked from 3417ee01220e7ce2190845a6d8b5f16311b93258)

utils/lm-sensors/Makefile

index c9cd8bbe3ce373db5e8837d2dd9e06d3dfe63158..a0d2ddc84688f7a462c9530aadb95b5660332681 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lm-sensors
 PKG_VERSION:=3.3.5
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/groeck/lm-sensors.git
@@ -17,6 +17,7 @@ PKG_SOURCE_VERSION:=f8cdcc35bff0785aecf49d9a8484a71ce3ebee4f
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_MIRROR_HASH:=892e9e2eed78e27fb7a08e8ce78b1164a3d101ba79a9e04f1c1273940d48cf17
+
 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
 PKG_LICENSE:=GPL-2.0+ LGPL-2.1+
 
@@ -113,7 +114,7 @@ endef
 
 define Package/libsensors/install
        $(INSTALL_DIR) $(1)/usr/lib
-       $(INSTALL_DATA) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib
+       $(CP) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib
 endef
 
 $(eval $(call BuildPackage,lm-sensors))