summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@gmail.com>2012-09-22 07:12:09 +0700
committer Robby Workman <rworkman@slackbuilds.org>2012-09-22 11:40:55 -0500
commit6b9f49ed333ff9abf6103a927ff8ab3e1f9c83c9 (patch)
tree9595b25ebc3f07199990a8688d43038f3764f055
parentbf07128dc6990e68c62c7abf52b0e5dcdfdeaf28 (diff)
downloadslackbuilds-6b9f49ed333ff9abf6103a927ff8ab3e1f9c83c9.tar.gz
slackbuilds-6b9f49ed333ff9abf6103a927ff8ab3e1f9c83c9.tar.xz
office/rastertospp: Link cups correctly
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--office/rastertospp/rastertospp.SlackBuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/office/rastertospp/rastertospp.SlackBuild b/office/rastertospp/rastertospp.SlackBuild
index b2b1b1baff..6adf09c60a 100644
--- a/office/rastertospp/rastertospp.SlackBuild
+++ b/office/rastertospp/rastertospp.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=rastertospp
VERSION=${VERSION:-1.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -72,7 +72,7 @@ mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/cups/filter
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-gcc -Wall -lcupsimage -o $PKG/usr/lib${LIBDIRSUFFIX}/cups/filter/$PRGNAM ./$PRGNAM.c
+gcc -Wall $(cups-config --image --libs) -o $PKG/usr/lib${LIBDIRSUFFIX}/cups/filter/$PRGNAM ./$PRGNAM.c
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true