diff options
author | Iskar Enev <iskar.enev@gmail.com> | 2010-05-11 14:05:50 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 14:05:50 +0200 |
commit | 32a44a6905a248c5c50d54583463bdc437f6da0f (patch) | |
tree | df9dec73a6cfa79ae2d577182c34ae4ffbefdade /development | |
parent | 74534b2106bd57083114812c2740de1b82970349 (diff) |
development/cupsddk: Initial import
Diffstat (limited to 'development')
-rw-r--r-- | development/cupsddk/README | 13 | ||||
-rw-r--r-- | development/cupsddk/cupsddk.SlackBuild | 61 | ||||
-rw-r--r-- | development/cupsddk/cupsddk.info | 8 | ||||
-rw-r--r-- | development/cupsddk/slack-desc | 19 |
4 files changed, 101 insertions, 0 deletions
diff --git a/development/cupsddk/README b/development/cupsddk/README new file mode 100644 index 0000000000000..42bf83e9f461b --- /dev/null +++ b/development/cupsddk/README @@ -0,0 +1,13 @@ +The CUPS Driver Development Kit (DDK) provides a suite of standard drivers, a +PPD file compiler, and other utilities that can be used to develop printer +drivers for CUPS and other printing environments. CUPS provides a portable +printing layer for UNIX(R)-based operating systems. The CUPS DDK provides +the means for mass-producing PPD files and drivers/filters for CUPS-based +printer drivers. + +Requirements: cups >= 1.2.x + +*NOTE*: Slackware 11.0 does not come wit cups 1.2.x installed by default. +However, there is a package under testing/packages/cups-1.2.4/ on either +your local install-media or your slackware-mirror. + diff --git a/development/cupsddk/cupsddk.SlackBuild b/development/cupsddk/cupsddk.SlackBuild new file mode 100644 index 0000000000000..98844a1565549 --- /dev/null +++ b/development/cupsddk/cupsddk.SlackBuild @@ -0,0 +1,61 @@ +#!/bin/sh + +# Slackware build script for cupsddk +# Written by Iskar Enev iskar.enev@gmail.com + +PRGNAM=cupsddk +VERSION=1.1.1 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=`pwd` +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +tar -xjvf $CWD/$PRGNAM-$VERSION-source.tar.bz2 || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --with-docdir=/usr/doc/$PRGNAM-$VERSION \ + || exit 1 + +make || exit 1 +make BUILDROOT=$PKG install || exit 1 + +(cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +mkdir -p $PKG/usr/share/pixmaps/$PRGNAM +cp -a icons/* $PKG/usr/share/pixmaps/$PRGNAM + +cp -a CHANGES.txt CREDITS.txt FAQ.txt INSTALL.txt LICENSE* README.txt \ + doc/*.html doc/*.xml doc/*.pdf doc/*.book $PKG/usr/doc/$PRGNAM-$VERSION +cp -a examples/* $PKG/usr/doc/$PRGNAM-$VERSION/examples +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.tgz diff --git a/development/cupsddk/cupsddk.info b/development/cupsddk/cupsddk.info new file mode 100644 index 0000000000000..a52e55fa93b27 --- /dev/null +++ b/development/cupsddk/cupsddk.info @@ -0,0 +1,8 @@ +PRGNAM="cupsddk" +VERSION="1.1.1" +HOMEPAGE="http://www.cups.org/ddk/" +DOWNLOAD="http://ftp.easysw.com/pub/cupsddk/1.1.1/cupsddk-1.1.1-source.tar.bz2" +MD5SUM="0e067d6d16d0e17a0218aa5eabda8134" +MAINTAINER="Iskar Enev" +EMAIL="iskar.enev@gmail.com" +APPROVED="BP{k}" diff --git a/development/cupsddk/slack-desc b/development/cupsddk/slack-desc new file mode 100644 index 0000000000000..9399099e4e569 --- /dev/null +++ b/development/cupsddk/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 ':'. + + |-----handy-ruler---------------------------------------------------------| +cupsddk: cupsddk +cupsddk: +cupsddk: The CUPS Driver Development Kit (DDK) provides a suite of standard +cupsddk: drivers, a PPD file compiler, and other utilities that can be used to +cupsddk: develop printer drivers for CUPS and other printing environments. CUPS +cupsddk: provides a portable printing layer for UNIX®-based operating systems. +cupsddk: The CUPS DDK provides the means for mass-producing PPD files and +cupsddk: drivers/filters for CUPS-based printer drivers. +cupsddk: +cupsddk: +cupsddk: |