author: kx <kx@radix.pro> 2023-10-04 16:12:17 +0300
committer: kx <kx@radix.pro> 2023-10-04 16:12:17 +0300
commit: cea5a07221c6d35d442c38d800e490003ba84dc8
parent: 116fac8ddfd42bf07ea69ca3f5acc786a5f529be
Commit Summary:
Diffstat:
2 files changed, 34 insertions, 0 deletions
diff --git a/packages/x/Makefile b/packages/x/Makefile
index 31ec547..bf21be4 100644
--- a/packages/x/Makefile
+++ b/packages/x/Makefile
@@ -33,6 +33,7 @@ SUBDIRS := Vulkan \
libglvnd \
libinput \
libportal \
+ libreoffice \
libtxc_dxtn \
libvdpau \
libwacom \
diff --git a/packages/x/libreoffice/Makefile b/packages/x/libreoffice/Makefile
new file mode 100644
index 0000000..6953f7d
--- /dev/null
+++ b/packages/x/libreoffice/Makefile
@@ -0,0 +1,44 @@
+#
+# Project Home:
+# ============
+# https://www.libreoffice.org
+# https://wiki.documentfoundation.org/Main_Page
+#
+# Downloads:
+# =========
+# http://download.documentfoundation.org/libreoffice/src/${VERSION}/
+#
+
+url = http://download.documentfoundation.org/libreoffice/src
+
+versions = 7.6.2.1
+
+pkgname = libreoffice
+suffix = tar.xz
+
+short-version = $(shell echo $(version) | cut -f1,2,3 -d'.')
+
+tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+tarballs += $(foreach add, dictionaries help translations, $(addsuffix .$(suffix), $(addprefix $(pkgname)-$(add)-, $(versions))))
+sha1s = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(tarballs) $(signatures) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+ @echo -e "\n======= Downloading source tarballs =======\n"
+ @for tarball in $(tarballs) ; do \
+ version=`echo $$tarball | sed 's/\([a-zA-Z-]*\)\([0-9][.0-9]*\)\([\.].*\)/\2/' | cut -f1,2,3 -d'.'` ; \
+ wget --no-check-certificate -N $(url)/$${version}/$${tarball} ; \
+ done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+ @for tarball in $< ; do \
+ echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+ sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+ done
+
+downloads_clean:
+ @rm -rf $(tarballs) $(sha1s)