mirror of
https://github.com/godotengine/buildroot.git
synced 2025-12-31 09:48:56 +03:00
Extended _EXTRACT_CMDS and _INSTALL_TARGET_CMDS to handle updated
internal zip structure:
$ unzip -l ../dl/bootstrap-3.3.1-dist.zip
Archive: ../dl/bootstrap-3.3.1-dist.zip
Length Date Time Name
--------- ---------- ----- ----
0 2014-11-12 18:03 dist/
0 2014-11-12 18:03 dist/css/
[...]
$ unzip -l ../dl/bootstrap-3.3.7-dist.zip
Archive: ../dl/bootstrap-3.3.7-dist.zip
Length Date Time Name
--------- ---------- ----- ----
0 2016-07-25 15:53 bootstrap-3.3.7-dist/css/
[...]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[Thomas: better fix for the EXTRACT_CMDS, which consists in removing the
dist/ sub-directory.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
29 lines
1.0 KiB
Makefile
29 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# bootstrap
|
|
#
|
|
################################################################################
|
|
|
|
BOOTSTRAP_VERSION = 3.3.7
|
|
BOOTSTRAP_SITE = https://github.com/twbs/bootstrap/releases/download/v$(BOOTSTRAP_VERSION)
|
|
BOOTSTRAP_SOURCE = bootstrap-$(BOOTSTRAP_VERSION)-dist.zip
|
|
BOOTSTRAP_LICENSE = MIT
|
|
|
|
define BOOTSTRAP_EXTRACT_CMDS
|
|
$(UNZIP) $(DL_DIR)/$(BOOTSTRAP_SOURCE) -d $(@D)
|
|
mv $(@D)/bootstrap-$(BOOTSTRAP_VERSION)-dist/* $(@D)/
|
|
rmdir $(@D)/bootstrap-$(BOOTSTRAP_VERSION)-dist
|
|
endef
|
|
|
|
define BOOTSTRAP_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 0644 -D $(@D)/css/bootstrap-theme.min.css \
|
|
$(TARGET_DIR)/var/www/bootstrap/css/bootstrap-theme.min.css
|
|
$(INSTALL) -m 0644 -D $(@D)/css/bootstrap.min.css \
|
|
$(TARGET_DIR)/var/www/bootstrap/css/bootstrap.min.css
|
|
$(INSTALL) -m 0644 -D $(@D)/js/bootstrap.min.js \
|
|
$(TARGET_DIR)/var/www/bootstrap/js/bootstrap.min.js
|
|
cp -r $(@D)/fonts $(TARGET_DIR)/var/www/bootstrap/
|
|
endef
|
|
|
|
$(eval $(generic-package))
|