kumquat-buildroot/package/datatables-responsive/datatables-responsive.mk
Joeri Barbarien 08c11e21a7 package/datatables-responsive: new package
Signed-off-by: Joeri Barbarien <joeri.barbarien@nokia.com>
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-01-02 12:24:12 +01:00

26 lines
1.1 KiB
Makefile

################################################################################
#
# datatables-responsive
#
################################################################################
DATATABLES_RESPONSIVE_VERSION = 2.2.3
DATATABLES_RESPONSIVE_SITE = https://datatables.net/releases
DATATABLES_RESPONSIVE_SOURCE = Responsive-$(DATATABLES_RESPONSIVE_VERSION).zip
DATATABLES_RESPONSIVE_LICENSE = MIT
DATATABLES_RESPONSIVE_LICENSE_FILES = License.txt
define DATATABLES_RESPONSIVE_EXTRACT_CMDS
$(UNZIP) $(DATATABLES_RESPONSIVE_DL_DIR)/$(DATATABLES_RESPONSIVE_SOURCE) -d $(@D)
mv $(@D)/Responsive-$(DATATABLES_RESPONSIVE_VERSION)/* $(@D)
rmdir $(@D)/Responsive-$(DATATABLES_RESPONSIVE_VERSION)
endef
define DATATABLES_RESPONSIVE_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -d $(TARGET_DIR)/var/www/datatables-responsive/css $(TARGET_DIR)/var/www/datatables-responsive/js
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-responsive/css $(@D)/css/*.min.css
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-responsive/js $(@D)/js/*.min.js
endef
$(eval $(generic-package))