mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
7f4682598e
ap/ghostscript-10.01.1-x86_64-1.txz: Upgraded. Shared library .so-version bump. l/libspectre-0.2.12-x86_64-2.txz: Rebuilt. Recompiled against ghostscript-10.01.1. t/texlive-2023.230322-x86_64-4.txz: Rebuilt. Recompiled against ghostscript-10.01.1. t/xfig-3.2.8b-x86_64-2.txz: Rebuilt. Recompiled against ghostscript-10.01.1. x/xorgproto-2023.2-x86_64-1.txz: Upgraded. xap/gimp-2.10.34-x86_64-5.txz: Rebuilt. Recompiled against ghostscript-10.01.1.
25 lines
1.1 KiB
Bash
Executable file
25 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
# Repacks the ghostscript tarball to remove old unmaintained libraries.
|
|
# The SlackBuild would remove them before building anyway, but this way
|
|
# we don't waste bandwidth and storage on useless junk.
|
|
|
|
VERSION=${VERSION:-$(echo ghostscript-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
|
|
|
|
tar xf ghostscript-${VERSION}.tar.xz || exit 1
|
|
mv ghostscript-${VERSION}.tar.xz ghostscript-${VERSION}.tar.xz.orig
|
|
( cd ghostscript-${VERSION} && rm -rf freetype jpeg lcms2 lcms2art/doc/* libpng libtiff png tiff zlib )
|
|
# Dump huge PDFs:
|
|
( cd ghostscript-${VERSION}
|
|
find . -name Ghostscript.pdf -exec rm {} \;
|
|
find . -name GS9_Color_Management.pdf -exec rm {} \;
|
|
rm -f doc/colormanage/figures/*.pdf
|
|
rm -f lcms2mt/doc/*
|
|
rm -f extract/test/*.pdf
|
|
rm -f toolbin/color/icc_creator/example/duotone.pdf toolbin/color/icc_creator/example/tritone.pdf toolbin/halftone/ETS/ei03.pdf
|
|
rm -f doc/pclxps/ghostpdl.pdf
|
|
)
|
|
tar cf ghostscript-${VERSION}.tar ghostscript-${VERSION}
|
|
rm -r ghostscript-${VERSION}
|
|
plzip -9 -n 6 ghostscript-${VERSION}.tar
|
|
touch -r ghostscript-${VERSION}.tar.xz.orig ghostscript-${VERSION}.tar.lz
|
|
rm ghostscript-${VERSION}.tar.xz.orig
|