package/chartjs: fix installation

Version 3.9.1 does not distribute a CSS file nor a bundle.  Install
only the minified Javascript source.

Fixes:

  http://autobuild.buildroot.net/results/454216c43430c829c4a06566e99f363e3d0f3019/

Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Ignacy Gawędzki 2022-09-26 11:52:03 +02:00 committed by Thomas Petazzoni
parent a8a65d0951
commit 2bd4ccbbc0

View File

@ -13,12 +13,8 @@ CHARTJS_CPE_ID_VENDOR = chartjs
CHARTJS_CPE_ID_PRODUCT = chart.js
define CHARTJS_INSTALL_TARGET_CMDS
$(INSTALL) -m 0644 -D $(@D)/dist/Chart.min.css \
$(TARGET_DIR)/var/www/chartjs/css/Chart.css
$(INSTALL) -m 0644 -D $(@D)/dist/Chart.min.js \
$(INSTALL) -m 0644 -D $(@D)/dist/chart.min.js \
$(TARGET_DIR)/var/www/chartjs/js/Chart.js
$(INSTALL) -m 0644 -D $(@D)/dist/Chart.bundle.min.js \
$(TARGET_DIR)/var/www/chartjs/js/Chart.bundle.js
endef
$(eval $(generic-package))