# cups-samsung/cfg - "Build" settings for package

#---------------------------------------------------------------------

# Technical notes:

# 1. After building this package, you should probably:
#
# a. Log-out of CUPS, if you're logged into it
#
# b. Restart the CUPS daemon:
# /laclin/setup/cups-base.boot
#
# c. If things don't seem to be working subsequently, a reboot combin-
# ed with a printer power-cycle may be needed.

# 2. As of 2015,  this  package  installs  32-bit (i386) closed-source
# executables. There isn't much alternative. When a 64-bit X86 version
# of the distro is built,  64-bit executables  should be installed in-
# stead.

#---------------------------------------------------------------------

# Future:
# Add build times.

#---------------------------------------------------------------------

[settings]
configure  = none
license    = tbd
nosyslinks = yes
proddir    = none
purge      = no
tmpsize    = 106M
unpack     = relaxed

#---------------------------------------------------------------------

[depends]
cups-base:strict
cups-filters

#---------------------------------------------------------------------

[build]
CUPSDIR=$PRODTREE/cups
LIBDIR=$CUPSDIR/lib
FILDIR=$LIBDIR/cups/filter
SHADIR=$CUPSDIR/share
MODELDIR=$SHADIR/cups/model/samsung

rm -fr $MODELDIR
mkdir -p $FILDIR $MODELDIR
cd Linux

# Future: Set architecture automatically.
#
# CUPSARCH=i386
CUPSARCH=x86_64

chown -R 0.0 .

for x in pstosecps pstospl pstosplc rastertospl rastertosplc
do
    cp -p $CUPSARCH/$x $FILDIR/$x.bin
    sed -e "s/__META_EXE__/$x/" \
            < $PKGDIR_SPECIAL/cups-filter-wrapper.in \
            > $FILDIR/$x
    chmod 755 $FILDIR/$x $FILDIR/$x.bin
done

chmod 755 $CUPSARCH/libscmssc.so
cp -p     $CUPSARCH/libscmssc.so    $LIBDIR/
cp -a     noarch/at_opt/share/ppd/* $MODELDIR/

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = http://packages.debian.org/unstable/source/cups
url_home    = http://www.cups.org/

url_lfs     = http://www.linuxfromscratch.org/blfs/view/stable/\
pst/printing.html#cups

url_tarball = https://www.openprinting.org/download/\
cups-filters/cups-filters-1.5.0.tar.xz