scribus/make-free-archive.sh
Dan Horák d2a9fac4c7 update to 1.4.2
- remove non-free content from source archive (#887221)
- drop doc and devel sub-packages
- switch to lcms2

Conflicts:

	scribus.spec
2013-01-15 19:37:52 +01:00

38 lines
745 B
Bash

#! /bin/sh
if [ -z "$1" ]; then
echo "version required"
exit 1
fi
version=$1
nv=scribus-${version}
archive=${nv}.tar.xz
freearchive=${nv}-free.tar.xz
[ -f ${archive} ] || curl -O http://downloads.sourceforge.net/scribus/scribus-${version}.tar.xz
echo "Extracting sources ..."
rm -rf ${nv}
xzcat $archive | tar xf -
pushd ${nv}
# remove docs
rm -r scribus/doc
# remove non-free profile
rm scribus/profiles/{sRGB.icm,srgb.license}
# remove non-free content from swatches
rm resources/swatches/*.eps
rm resources/swatches/dtp-studio-free-palettes-license.rtf
rm resources/swatches/GiveLife_Color_System_*.xml
rm resources/swatches/givelife_colors_license.rtf
popd
echo "Creating sources ..."
tar cf - ${nv} | xz > ${freearchive}