git.iko.soy/typeable/nixpkgs
on master help sign in
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…
commitff853a98fbe8bc02fd13a3339e767b45015d9f70 authorMichael Raskin <7c6f434c@mail.ru> dateFri 1 Jan 2016, 12:29 (11 years ago) parent8efa374
1 file changed+54
pkgs/applications/office/libreoffice/generate-libreoffice-srcs.sh+54
pkgs/applications/office/libreoffice/generate-libreoffice-srcs.shnew file+54
@@ -0,0 +1,54 @@
1+#!/run/current-system/sw/bin/bash
2+
3+# Take the list of files from the main package, ooo.lst.in
4+
5+cat <<EOF
6+[
7+EOF
8+
9+write_entry(){
10+ echo '{'
11+ echo " name = \"${name}\";"
12+ echo " md5 = \"${md5}\";"
13+ echo " brief = ${brief};"
14+ echo '}'
15+}
16+
17+while read line; do
18+ case "$line" in
19+ \#*)
20+ echo Skipping comment: "$line" >&2;
21+ ;;
22+ *_MD5SUM\ :=*)
23+ read tbline;
24+ line=${line##* };
25+ if [ "${tbline#*VERSION_MICRO}" != "$tbline" ]; then
26+ verline=${tbline##* };
27+ read tbline;
28+ tbline=${tbline##* };
29+ md5=$line
30+ name=$tbline;
31+ name="${name/\$([A-Z]*_VERSION_MICRO)/$verline}"
32+ else
33+ tbline=${tbline##* };
34+ md5=$line
35+ name=$tbline;
36+ fi
37+ brief=true;
38+ write_entry;
39+ ;;
40+ *_TARBALL\ :=*)
41+ line=${line##* };
42+ line="${line#,}"
43+ md5=${line:0:32};
44+ name=${line:33};
45+ brief=false;
46+ write_entry;
47+ ;;
48+ *)
49+ echo Skipping: "$line" >&2;
50+ ;;
51+ esac
52+done
53+
54+echo ']'