diff options
author | klaatu <klaatu@hackerpublicradio.org> | 2011-10-21 10:45:23 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-10-22 10:17:10 -0200 |
commit | ae10052ebd5eee1f2dd95f7353d9327334eb5084 (patch) | |
tree | 82ca2943b8616ecb7ee35da24ca1e2c1bc548079 /graphics/separate+/separate+.SlackBuild | |
parent | f4b29a99531d7f4598f99a8affa83300c7d3a6be (diff) | |
download | slackbuilds-ae10052ebd5eee1f2dd95f7353d9327334eb5084.tar.gz |
graphics/separate+: Added (CMYK support for GIMP)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'graphics/separate+/separate+.SlackBuild')
-rw-r--r-- | graphics/separate+/separate+.SlackBuild | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/graphics/separate+/separate+.SlackBuild b/graphics/separate+/separate+.SlackBuild new file mode 100644 index 0000000000..247820a56b --- /dev/null +++ b/graphics/separate+/separate+.SlackBuild @@ -0,0 +1,80 @@ +#!/bin/sh + +# Slackware build script for separate+ +# Written by klaatu at klaatu at hackerpublicradio.org + +PRGNAM=separate+ +VERSION=${VERSION:-0.5.8} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + x86_64) ARCH=x86_64 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +unzip $CWD/$PRGNAM-$VERSION.zip +cd $PRGNAM-$VERSION + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +if [ "X$LIBDIRSUFFIX" == "X64" ] + then sed -i 's_/lib/gimp/_/lib64/gimp/_' Makefile +fi + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +make +make install DESTDIR=$PKG + +mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/gimp/2.0/plug-ins +cp -a separate_import icc_colorspace $PKG/usr/lib$LIBDIRSUFFIX/gimp/2.0/plug-ins + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + README README_ICC_COLORSPACE readme.jp.txt readme_icc_colorspace.jp.txt COPYING sample-scripts \ + $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} |