graphics/iccprofiles: Added (ICC Profiles for color management workflows)

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
Klaatu 2011-10-21 10:41:38 -05:00 committed by Niels Horn
parent 5f04f41c4b
commit f4b29a9953
4 changed files with 131 additions and 0 deletions

View file

@ -0,0 +1,15 @@
Installs popular ICC Profiles from Adobe and ECI for color management.
Obviously there are many other ICC Profiles available for both
printers and scanners, but for general purpose color management, these
are fairly ubiquitous.
Krita features built-in color management; GIMP users may wish to
install separate+ (also available via SlackBuilds.org) for improved
color management and better CMYK support.
This script installs both Adobe and ECI profiles by default; exclude
one or the other by passing ADOBE=no or ECI=no to the SlackBuild.
http://www.adobe.com
http://www.eci.org

View file

@ -0,0 +1,83 @@
#!/bin/sh
# Slackware build script for ECI and Adobe ICC Profiles
# Written by klaatu at klaatu@hackerpublicradio.org
# with a buncha corrections by thrice`
PRGNAM=iccprofiles
VERSION=${VERSION:-2011}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
# icc profiles are arch independent
ARCH=noarch
# get ready for some
# really bad naming schemes cuz color profile
# people and artists have no clue about logic or consistency
ADBNAM=Adobe\ ICC\ Profiles\ \(end-user\)
ECINAM=ECI_Offset_2009
RGBNAM=eciRGB_v2_profile
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
if [ "${ADOBE}" != "no" ]; then
unzip $CWD/Adobe*.zip
# install Adobe profiles, without those ugly spaces
install -d $PKG/usr/share/color/icc/${ADBNAM// /_}-${VERSION}/
install -m644 "${ADBNAM}"/CMYK\ Profiles/*.icc \
$PKG/usr/share/color/icc/${ADBNAM// /_}-${VERSION}/
install -m644 "${ADBNAM}"/RGB\ Profiles/*.icc \
$PKG/usr/share/color/icc/${ADBNAM// /_}-${VERSION}/
# Add adobe docs
mkdir -p $PKG/usr/doc/${PRGNAM}-${VERSION}/${ADBNAM// /_}
install -m644 "${ADBNAM}"/*.pdf \
$PKG/usr/doc/${PRGNAM}-${VERSION}/${ADBNAM// /_}/
fi
if [ "$ECI" != "no" ]; then
unzip $CWD/eci_offset*.zip
unzip $CWD/ecirgb*.zip
# Install ECI_Offset profiles
install -d $PKG/usr/share/color/icc/${ECINAM}-${VERSION}/
install -m644 ${ECINAM}/*.icc \
$PKG/usr/share/color/icc/${ECINAM}-${VERSION}/
# Add ECI_Offset docs
mkdir -p $PKG/usr/doc/${PRGNAM}-${VERSION}/${ECINAM}/
install -m644 ${ECINAM}/*.pdf \
$PKG/usr/doc/${PRGNAM}-${VERSION}/${ECINAM}/
# Install eciRGB profiles
install -d $PKG/usr/share/color/icc/${RGBNAM}-${VERSION}/
install -m644 ${RGBNAM}/*.icc \
$PKG/usr/share/color/icc/${RGBNAM}-${VERSION}/
# Add RGB docs
mkdir -p $PKG/usr/doc/${PRGNAM}-${VERSION}/${RGBNAM}/
install -m644 ${RGBNAM}/*.rtf \
$PKG/usr/doc/${PRGNAM}-${VERSION}/${RGBNAM}/
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,14 @@
PRGNAM="iccprofiles"
VERSION="2011"
HOMEPAGE="http://www.eci.org"
DOWNLOAD="http://www.eci.org/lib/exe/fetch.php?id=en%3Adownloads&cache=cache&media=downloads:icc_profiles_from_eci:ecirgbv20.zip \
http://www.eci.org/lib/exe/fetch.php?id=en%3Adownloads&cache=cache&media=downloads:icc_profiles_from_eci:eci_offset_2009.zip \
http://download.adobe.com/pub/adobe/iccprofiles/win/AdobeICCProfilesWin_end-user.zip"
MD5SUM="20761e99976df9636bcf87ebe0d7e244 \
cf98d2ed58d8951c3473defa02cea4be \
8ef3e7079069449c1e0c01efa7a35c14"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Klaatu"
EMAIL="klaatu@hackerpublicradio.org"
APPROVED="Erik Hanson"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
iccprofiles: iccprofiles (ICC Profiles for color management workflows)
iccprofiles:
iccprofiles: ICC Profiles help maintain consistent color across different media
iccprofiles: and applications. This installs general-purpose Adobe and ECI
iccprofiles: profiles. (For specific profiles, see the website of your printer,
iccprofiles: scanner, or specialty paper and install to /usr/share/color/icc)
iccprofiles:
iccprofiles: Use ADOBE=no or ECI=no to exclude either the Adobe or ECI profiles.
iccprofiles:
iccprofiles: http://www.eci.org
iccprofiles: http://www.adobe.com