2020-12-08 19:05:25 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# datatables
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
DATATABLES_VERSION = 1.10.20
|
|
|
|
DATATABLES_SITE = https://datatables.net/releases
|
2021-11-29 23:08:03 +01:00
|
|
|
DATATABLES_SOURCE = DataTables-$(DATATABLES_VERSION).zip
|
2020-12-08 19:05:25 +01:00
|
|
|
DATATABLES_LICENSE = MIT
|
|
|
|
DATATABLES_LICENSE_FILES = license.txt
|
|
|
|
|
|
|
|
define DATATABLES_EXTRACT_CMDS
|
|
|
|
$(UNZIP) $(DATATABLES_DL_DIR)/$(DATATABLES_SOURCE) -d $(@D)
|
|
|
|
mv $(@D)/DataTables-$(DATATABLES_VERSION)/* $(@D)
|
|
|
|
rmdir $(@D)/DataTables-$(DATATABLES_VERSION)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define DATATABLES_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -m 0755 -d $(TARGET_DIR)/var/www/datatables/css $(TARGET_DIR)/var/www/datatables/js
|
|
|
|
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables/css $(@D)/media/css/*.min.css
|
|
|
|
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables/js $(@D)/media/js/*.min.js
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|