mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
Improve LibreOffice src list generation
This commit is contained in:
parent
f727f815cb
commit
e32172612a
|
@ -1,7 +1,11 @@
|
|||
#!/run/current-system/sw/bin/bash
|
||||
|
||||
# Ideally we would move as much as possible into derivation dependencies
|
||||
|
||||
# Take the list of files from the main package, ooo.lst.in
|
||||
|
||||
# This script wants an argument: download list file
|
||||
|
||||
cat <<EOF
|
||||
[
|
||||
EOF
|
||||
|
@ -11,11 +15,18 @@ write_entry(){
|
|||
echo " name = \"${name}\";"
|
||||
echo " md5 = \"${md5}\";"
|
||||
echo " brief = ${brief};"
|
||||
eval "echo -n \"\$additions_${name%%[-_.]*}\""
|
||||
eval "test -n \"\$additions_${name%%[-_.]*}\" && echo"
|
||||
echo '}'
|
||||
}
|
||||
|
||||
cat "$(dirname "$0")/libreoffice-srcs-additions.sh" "$@" |
|
||||
while read line; do
|
||||
case "$line" in
|
||||
EVAL\ *)
|
||||
echo "${line#* }" >&2;
|
||||
eval "${line#* }";
|
||||
;;
|
||||
\#*)
|
||||
echo Skipping comment: "$line" >&2;
|
||||
;;
|
||||
|
@ -42,6 +53,7 @@ while read line; do
|
|||
line="${line#,}"
|
||||
md5=${line:0:32};
|
||||
name=${line:33};
|
||||
name="${name%)}"
|
||||
brief=false;
|
||||
write_entry;
|
||||
;;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
EVAL additions_libgltf=' subDir = "libgltf";'
|
|
@ -323,6 +323,7 @@
|
|||
name = "libgltf-0.0.2.tar.bz2";
|
||||
md5 = "d63a9f47ab048f5009d90693d6aa6424";
|
||||
brief = true;
|
||||
subDir = "libgltf";
|
||||
}
|
||||
{
|
||||
name = "liblangtag-0.5.1.tar.bz2";
|
||||
|
|
Loading…
Reference in a new issue