aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/iccprofiles/README15
-rw-r--r--graphics/iccprofiles/iccprofiles.SlackBuild83
-rw-r--r--graphics/iccprofiles/iccprofiles.info14
-rw-r--r--graphics/iccprofiles/slack-desc19
4 files changed, 131 insertions, 0 deletions
diff --git a/graphics/iccprofiles/README b/graphics/iccprofiles/README
new file mode 100644
index 0000000000000..8fc5befceb40c
--- /dev/null
+++ b/graphics/iccprofiles/README
@@ -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
+
diff --git a/graphics/iccprofiles/iccprofiles.SlackBuild b/graphics/iccprofiles/iccprofiles.SlackBuild
new file mode 100644
index 0000000000000..53c4c883e6994
--- /dev/null
+++ b/graphics/iccprofiles/iccprofiles.SlackBuild
@@ -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}
diff --git a/graphics/iccprofiles/iccprofiles.info b/graphics/iccprofiles/iccprofiles.info
new file mode 100644
index 0000000000000..76a10847dac11
--- /dev/null
+++ b/graphics/iccprofiles/iccprofiles.info
@@ -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"
diff --git a/graphics/iccprofiles/slack-desc b/graphics/iccprofiles/slack-desc
new file mode 100644
index 0000000000000..bea9bfeef55af
--- /dev/null
+++ b/graphics/iccprofiles/slack-desc
@@ -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