nixpkgs/pkgs/applications/office/openoffice/generate-libreoffice-srcs.sh
Lluís Batlle i Rossell 7fc001306c I add some little code to fetch the srcs of libreoffice.
svn path=/nixpkgs/trunk/; revision=31838
2012-01-25 19:12:27 +00:00

28 lines
588 B
Bash

#!/bin/sh
VERSIONBASE=3.4.5
VERSION=3.4.5.2
if [ $# -gt 2 ]; then
VERSIONBASE=$1
VERSION=$2
fi
echo '{fetchurl} : ['
# I skip, as I hope I'll not need: sdk testing
for a in artwork base bootstrap calc components extensions extras filters \
help impress libs-core libs-extern libs-extern-sys libs-gui postprocess \
translations ure writer; do
URL=http://download.documentfoundation.org/libreoffice/src/$VERSIONBASE/libreoffice-$a-$VERSION.tar.bz2
echo '(fetchurl {'
echo " url = \"$URL\";"
echo " sha256 = \"`nix-prefetch-url $URL`\";"
echo '})'
done
echo ']'