2020-12-08 19:05:26 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# datatables-buttons
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
DATATABLES_BUTTONS_VERSION = 1.6.1
|
|
|
|
DATATABLES_BUTTONS_SITE = https://datatables.net/releases
|
|
|
|
DATATABLES_BUTTONS_SOURCE = Buttons-$(DATATABLES_BUTTONS_VERSION).zip
|
|
|
|
DATATABLES_BUTTONS_LICENSE = MIT
|
2021-01-02 12:06:11 +01:00
|
|
|
DATATABLES_BUTTONS_LICENSE_FILES = License.txt
|
|
|
|
|
2020-12-08 19:05:26 +01:00
|
|
|
define DATATABLES_BUTTONS_EXTRACT_CMDS
|
|
|
|
$(UNZIP) $(DATATABLES_BUTTONS_DL_DIR)/$(DATATABLES_BUTTONS_SOURCE) -d $(@D)
|
2021-01-02 12:06:11 +01:00
|
|
|
mv $(@D)/Buttons-$(DATATABLES_BUTTONS_VERSION)/* $(@D)
|
|
|
|
rmdir $(@D)/Buttons-$(DATATABLES_BUTTONS_VERSION)
|
2020-12-08 19:05:26 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define DATATABLES_BUTTONS_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 0755 -d $(TARGET_DIR)/var/www/datatables-buttons/css $(TARGET_DIR)/var/www/datatables-buttons/js
|
2021-01-02 12:06:11 +01:00
|
|
|
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-buttons/css $(@D)/css/*.min.css
|
|
|
|
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-buttons/js $(@D)/js/*.min.js
|
2020-12-08 19:05:26 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|