summary refs log tree commit diff
path: root/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py')
-rwxr-xr-xpkgs/applications/office/libreoffice/generate-libreoffice-srcs.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py b/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py
index dcda0ff782dc..636f36cb383b 100755
--- a/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py
+++ b/pkgs/applications/office/libreoffice/generate-libreoffice-srcs.py
@@ -256,7 +256,7 @@ def interpret(x):
     Output: One of 1. Dict with keys 'name' and 'attrs'
                    2. 'unrecognized' (if interpretation failed)
     """
-    for f in [interpret_md5, interpret_sha256, interpret_tarball_with_md5, interpret_tarball]:
+    for f in [interpret_md5, interpret_sha256, interpret_tarball_with_md5, interpret_tarball, interpret_jar]:
         result = f(x)
         if result is not None:
             return result
@@ -296,6 +296,13 @@ def interpret_tarball(x):
         return {'name': match.group(1),
                 'attrs': {'tarball': x['value'], 'brief': True}}
 
+def interpret_jar(x):
+    match = re.match('^(.*)_JAR$', x['key'])
+
+    if match:
+        return {'name': match.group(1),
+                'attrs': {'tarball': x['value'], 'brief': True}}
+
 
 def interpret_tarball_with_md5(x):
     """