diff options
author | kx <kx@radix.pro> | 2023-05-22 11:20:52 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2023-05-22 11:20:52 +0300 |
commit | 2c8f8af33247699237b0dc98eb285224f236b166 (patch) | |
tree | 4ecc05e9b1524b60814b8807fae7b846614b9164 | |
parent | 0bf9afb59e0a2b33da15bc23a398e313f067dd58 (diff) | |
download | sources-2c8f8af33247699237b0dc98eb285224f236b166.tar.xz |
woff2-1.0.2
-rw-r--r-- | packages/l/Makefile | 1 | ||||
-rw-r--r-- | packages/l/woff2/Makefile | 59 |
2 files changed, 60 insertions, 0 deletions
diff --git a/packages/l/Makefile b/packages/l/Makefile index 187fe0c..bf8c63a 100644 --- a/packages/l/Makefile +++ b/packages/l/Makefile @@ -131,6 +131,7 @@ SUBDIRS := aalib \ usbids \ utf8proc \ v4l-utils \ + woff2 \ zeromq \ zlib \ zstd diff --git a/packages/l/woff2/Makefile b/packages/l/woff2/Makefile new file mode 100644 index 0000000..098db22 --- /dev/null +++ b/packages/l/woff2/Makefile @@ -0,0 +1,59 @@ +# +# Project Home: +# ============ +# https://github.com/google/woff2 +# +# Clone: +# ===== +# https://github.com/google/woff2.git +# + +url = https://github.com/google + +repo_name = woff2 +pkg_name = woff2 +suffix = tar.xz + +versions = 1.0.2 + +git_repo = .git_clone +tarballs = $(addsuffix .tar.xz, $(addprefix $(pkg_name)-, $(versions))) +sha1s = $(addsuffix .sha1sum, $(tarballs)) + +TARGETS = repository_clean + + +all: $(TARGETS) + +.PHONY: downloads_clean repository_clean + +$(git_repo): + @echo -e "\n======= Clone $(repo_name).git repository =======\n" + @rm -rf $(repo_name) + @git clone $(url)/$(repo_name).git $(repo_name) + @touch $@ + +$(tarballs): $(git_repo) + @for version in $(versions) ; do \ + tag=v`echo $$version` ; \ + if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \ + echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \ + ( cd $(repo_name) && \ + git archive --format=tar --prefix=$(pkg_name)-$$version/ $$tag | \ + xz >../$(pkg_name)-$$version.$(suffix) ) ; \ + fi ; \ + done + +$(sha1s): %.tar.xz.sha1sum : %.tar.xz + @for tarball in $< ; do \ + echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \ + sha1sum --binary $$tarball > $$tarball.sha1sum ; \ + done + +repository_clean: $(sha1s) + @echo -e "\n======= Remove cloned $(repo_name).git repository =======\n" + @rm -rf $(git_repo) $(repo_name) + +downloads_clean: + @rm -rf $(tarballs) $(sha1s) + @rm -rf $(git_repo) $(repo_name) |