summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2023-03-07 20:30:43 +0000
committer Eric Hameleers <alien@slackware.com>2023-03-07 20:30:43 +0000
commit7af5ce6ab339a61f9260340ce3000e13ea60b5e7 (patch)
treec8c41db73cc0edbf8f7e7f8af24ada75f590a95f
parent1116323a66104723c78dd699ed3ff0a67e63e1a5 (diff)
downloadasb-7af5ce6ab339a61f9260340ce3000e13ea60b5e7.tar.gz
asb-7af5ce6ab339a61f9260340ce3000e13ea60b5e7.tar.xz
libreoffice: update gensrc.sh for 7.5.1.2
-rwxr-xr-xlibreoffice/build/gensrc.sh8
-rwxr-xr-xlibreoffice/build/gensrc_lo75.sh53
2 files changed, 57 insertions, 4 deletions
diff --git a/libreoffice/build/gensrc.sh b/libreoffice/build/gensrc.sh
index aba47782..36bfa09d 100755
--- a/libreoffice/build/gensrc.sh
+++ b/libreoffice/build/gensrc.sh
@@ -1,8 +1,8 @@
#!/bin/bash
PRGNAM=libreoffice
-VERSION=7.4.5
-SUBVER=.1
+VERSION=7.5.1
+SUBVER=.2
STARTINDEX=6
@@ -22,7 +22,7 @@ wget --no-check-certificate -q -O - "http://cgit.freedesktop.org/libreoffice/cor
# Get the names of the tarballs we need:
echo "all:" >> $TMP_DLLST
-cat $TMP_DLLST | grep -v " *#" | grep -w export | grep -E '(_TARBALL|_JAR|_TTF)' | cut -f2 -d' ' | cut -f1 -d= | sed -e 's/.*/\t&=$(&)'/ >> $TMP_DLLST
+cat $TMP_DLLST | grep -v " *#" | grep -E '(_TARBALL|_JAR|_TTF)' | cut -f1 -d' ' | cut -f1 -d= | sed -e 's/.*/\t&=$(&)'/ >> $TMP_DLLST
eval $(make HAVE_JAVA6=TRUE -f $TMP_DLLST)
# Find the download site for a given tarball:
@@ -30,7 +30,7 @@ find_url() {
cat $TMP_FETCH | sed -n "/$1/,/fetch_Download_item/s/^.*fetch_Download_item[^,]*,\([^,]*\),.*$/\1/p"
}
-for BALL in OPENSYMBOL_TTF $( cat $TMP_DLLST | grep -v " *#" | grep -w export | grep -E '(_TARBALL|_JAR)' | cut -f2 -d' ' | cut -f1 -d= ); do
+for BALL in OPENSYMBOL_TTF $( cat $TMP_DLLST | grep -v " *#" | grep -E '(_TARBALL|_JAR)' | cut -f1 -d' ' | cut -f1 -d= ); do
SRCURL=$(find_url $BALL)
FILE=$(eval "echo \$$BALL")
diff --git a/libreoffice/build/gensrc_lo75.sh b/libreoffice/build/gensrc_lo75.sh
new file mode 100755
index 00000000..36bfa09d
--- /dev/null
+++ b/libreoffice/build/gensrc_lo75.sh
@@ -0,0 +1,53 @@
+#!/bin/bash
+
+PRGNAM=libreoffice
+VERSION=7.5.1
+SUBVER=.2
+
+STARTINDEX=6
+
+III=$STARTINDEX
+
+echo "# --- Start of section generated by $(basename $0) ---"
+echo "# External sources for $PRGNAM-$VERSION$SUBVER"
+echo ""
+
+# Two temp files to store download data:
+TMP_DLLST=$(mktemp -t lo_XXXXXX)
+TMP_FETCH=$(mktemp -t lo_XXXXXX)
+
+# Download necessary data files:
+wget --no-check-certificate -q -O - "http://cgit.freedesktop.org/libreoffice/core/plain/download.lst?id=$(echo $PRGNAM-$VERSION$SUBVER)" > $TMP_DLLST
+wget --no-check-certificate -q -O - "http://cgit.freedesktop.org/libreoffice/core/plain/Makefile.fetch?id=$(echo $PRGNAM-$VERSION$SUBVER)" > $TMP_FETCH
+
+# Get the names of the tarballs we need:
+echo "all:" >> $TMP_DLLST
+cat $TMP_DLLST | grep -v " *#" | grep -E '(_TARBALL|_JAR|_TTF)' | cut -f1 -d' ' | cut -f1 -d= | sed -e 's/.*/\t&=$(&)'/ >> $TMP_DLLST
+eval $(make HAVE_JAVA6=TRUE -f $TMP_DLLST)
+
+# Find the download site for a given tarball:
+find_url() {
+ cat $TMP_FETCH | sed -n "/$1/,/fetch_Download_item/s/^.*fetch_Download_item[^,]*,\([^,]*\),.*$/\1/p"
+}
+
+for BALL in OPENSYMBOL_TTF $( cat $TMP_DLLST | grep -v " *#" | grep -E '(_TARBALL|_JAR)' | cut -f1 -d' ' | cut -f1 -d= ); do
+
+ SRCURL=$(find_url $BALL)
+ FILE=$(eval "echo \$$BALL")
+
+ cat <<EOT
+SOURCE[$III]="\$SRCDIR/\${LOSRC_DIR}/$FILE"
+SRCURL[$III]="$SRCURL/$FILE"
+GITURI[$III]=""
+
+EOT
+
+ III=$(($III+1))
+
+done
+
+echo "# --- End of section generated by $(basename $0) ---"
+
+# Delete the temporary files:
+#rm -f $TMP_DLLST $TMP_FETCH
+