1################################################################################ 2# 3# bootstrap 4# 5################################################################################ 6 7BOOTSTRAP_VERSION = 4.3.1 8BOOTSTRAP_SITE = https://github.com/twbs/bootstrap/releases/download/v$(BOOTSTRAP_VERSION) 9BOOTSTRAP_SOURCE = bootstrap-$(BOOTSTRAP_VERSION)-dist.zip 10BOOTSTRAP_LICENSE = MIT 11BOOTSTRAP_LICENSE_FILES = css/bootstrap.css 12BOOTSTRAP_CPE_ID_VENDOR = getbootstrap 13 14define BOOTSTRAP_EXTRACT_CMDS 15 $(UNZIP) $(BOOTSTRAP_DL_DIR)/$(BOOTSTRAP_SOURCE) -d $(@D) 16 mv $(@D)/bootstrap-$(BOOTSTRAP_VERSION)-dist/* $(@D) 17endef 18 19define BOOTSTRAP_INSTALL_TARGET_CMDS 20 $(INSTALL) -m 0644 -D $(@D)/css/bootstrap.min.css \ 21 $(TARGET_DIR)/var/www/bootstrap/css/bootstrap.min.css 22 $(INSTALL) -m 0644 -D $(@D)/css/bootstrap.min.css.map \ 23 $(TARGET_DIR)/var/www/bootstrap/css/bootstrap.min.css.map 24 $(INSTALL) -m 0644 -D $(@D)/js/bootstrap.min.js \ 25 $(TARGET_DIR)/var/www/bootstrap/js/bootstrap.min.js 26endef 27 28$(eval $(generic-package)) 29