diff options
author | Sebastien Ballet <slacker6896@gmail.com> | 2017-03-24 13:49:27 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-03-25 00:07:32 +0000 |
commit | f252293b735cfceb94d4e1461ccff190b2835116 (patch) | |
tree | f2ac82a8648bcfc6df700b3024105e71455acfcf /office/cups-pdf/cups-pdf.SlackBuild | |
parent | 737325ffdfd8655085fbded6cff684af82707a81 (diff) |
office/cups-pdf: Updated for version 3.0.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'office/cups-pdf/cups-pdf.SlackBuild')
-rw-r--r-- | office/cups-pdf/cups-pdf.SlackBuild | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/office/cups-pdf/cups-pdf.SlackBuild b/office/cups-pdf/cups-pdf.SlackBuild index 23d28b8125578..1a75532910100 100644 --- a/office/cups-pdf/cups-pdf.SlackBuild +++ b/office/cups-pdf/cups-pdf.SlackBuild @@ -1,17 +1,35 @@ #!/bin/sh # Slackware build script for cups-pdf -# Written by Sebastien Ballet (phenixi@aliceadsl.fr) -# Modified by SlackBuilds.org + +# Copyright 2010-2017 S. Ballet, France +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=cups-pdf -VERSION=${VERSION:-3.0beta1} +VERSION=${VERSION:-3.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -24,8 +42,8 @@ OUTPUT=${OUTPUT:-/tmp} set -e -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -61,6 +79,7 @@ cat extra/cups-pdf.conf > $PKG/etc/cups/cups-pdf.conf.new mkdir -p $PKG/usr/share/cups/model cp -a extra/CUPS-PDF_opt.ppd $PKG/usr/share/cups/model/CUPS-PDF.ppd +cp -a extra/CUPS-PDF_noopt.ppd $PKG/usr/share/cups/model/CUPS-PDF_noopt.ppd mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION |