libreoffice: readd and fix the script to generate fetch list for LibreOffice. Migrating all of these to system packages would not work without patching the build system, I am afraid…
This commit is contained in:
parent
8efa3745c7
commit
ff853a98fb
1 changed files with 54 additions and 0 deletions
54
pkgs/applications/office/libreoffice/generate-libreoffice-srcs.sh
Executable file
54
pkgs/applications/office/libreoffice/generate-libreoffice-srcs.sh
Executable file
|
@ -0,0 +1,54 @@
|
|||
#!/run/current-system/sw/bin/bash
|
||||
|
||||
# Take the list of files from the main package, ooo.lst.in
|
||||
|
||||
cat <<EOF
|
||||
[
|
||||
EOF
|
||||
|
||||
write_entry(){
|
||||
echo '{'
|
||||
echo " name = \"${name}\";"
|
||||
echo " md5 = \"${md5}\";"
|
||||
echo " brief = ${brief};"
|
||||
echo '}'
|
||||
}
|
||||
|
||||
while read line; do
|
||||
case "$line" in
|
||||
\#*)
|
||||
echo Skipping comment: "$line" >&2;
|
||||
;;
|
||||
*_MD5SUM\ :=*)
|
||||
read tbline;
|
||||
line=${line##* };
|
||||
if [ "${tbline#*VERSION_MICRO}" != "$tbline" ]; then
|
||||
verline=${tbline##* };
|
||||
read tbline;
|
||||
tbline=${tbline##* };
|
||||
md5=$line
|
||||
name=$tbline;
|
||||
name="${name/\$([A-Z]*_VERSION_MICRO)/$verline}"
|
||||
else
|
||||
tbline=${tbline##* };
|
||||
md5=$line
|
||||
name=$tbline;
|
||||
fi
|
||||
brief=true;
|
||||
write_entry;
|
||||
;;
|
||||
*_TARBALL\ :=*)
|
||||
line=${line##* };
|
||||
line="${line#,}"
|
||||
md5=${line:0:32};
|
||||
name=${line:33};
|
||||
brief=false;
|
||||
write_entry;
|
||||
;;
|
||||
*)
|
||||
echo Skipping: "$line" >&2;
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
echo ']'
|
Loading…
Reference in a new issue