mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/cupsddk: Initial import
This commit is contained in:
parent
74534b2106
commit
32a44a6905
4 changed files with 101 additions and 0 deletions
13
development/cupsddk/README
Normal file
13
development/cupsddk/README
Normal file
|
@ -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.
|
||||
|
61
development/cupsddk/cupsddk.SlackBuild
Normal file
61
development/cupsddk/cupsddk.SlackBuild
Normal file
|
@ -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
|
8
development/cupsddk/cupsddk.info
Normal file
8
development/cupsddk/cupsddk.info
Normal file
|
@ -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}"
|
19
development/cupsddk/slack-desc
Normal file
19
development/cupsddk/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue