summaryrefslogtreecommitdiff
path: root/office/cups-pdf/cups-pdf.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/cups-pdf/cups-pdf.SlackBuild')
-rw-r--r--office/cups-pdf/cups-pdf.SlackBuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/office/cups-pdf/cups-pdf.SlackBuild b/office/cups-pdf/cups-pdf.SlackBuild
index 0262aaaf37..149a3e9487 100644
--- a/office/cups-pdf/cups-pdf.SlackBuild
+++ b/office/cups-pdf/cups-pdf.SlackBuild
@@ -5,16 +5,14 @@
# Modified by SlackBuilds.org
PRGNAM=cups-pdf
-VERSION=2.5.0
+VERSION=${VERSION:-3.0beta1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -50,7 +48,7 @@ chown -R root:root .
chmod -R u+w,go+r-w,a-s .
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/cups/backend
-gcc $SLCKFLAGS -s -o $PKG/usr/lib${LIBDIRSUFFIX}/cups/backend/cups-pdf src/cups-pdf.c
+gcc $SLCKFLAGS -s -lcups -o $PKG/usr/lib${LIBDIRSUFFIX}/cups/backend/cups-pdf src/cups-pdf.c
chmod 0700 $PKG/usr/lib${LIBDIRSUFFIX}/cups/backend/cups-pdf
@@ -58,7 +56,7 @@ mkdir -p $PKG/etc/cups
cat extra/cups-pdf.conf > $PKG/etc/cups/cups-pdf.conf.new
mkdir -p $PKG/usr/share/cups/model
-cp -a extra/CUPS-PDF.ppd $PKG/usr/share/cups/model
+cp -a extra/CUPS-PDF_opt.ppd $PKG/usr/share/cups/model/CUPS-PDF.ppd
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION