summaryrefslogtreecommitdiff
path: root/cups/Pkgfile
blob: 07fbba7f3fc543492272c69e118213a7bb4290d8 (plain)
    1 # Description: CUPS - Common UNIX Printing System
    2 # URL:         http://www.cups.org
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  acl libusb zlib
    5 
    6 name=cups
    7 version=2.2.3
    8 release=1
    9 source=(https://github.com/apple/cups/releases/download/v$version/$name-$version-source.tar.gz
   10         cups)
   11 
   12 build () {
   13     cd $name-$version
   14 
   15     CC=cc CXX=c++ \
   16     ./configure --prefix=/usr \
   17                 --sysconfdir=/etc \
   18                 --libdir=/usr/lib \
   19                 --localstatedir=/var \
   20                 --with-docdir=/usr/share/cups/doc \
   21                 --with-logdir=/var/log/cups \
   22                 --with-cups-user=daemon \
   23                 --with-cups-group=lp \
   24                 --with-languages="" \
   25                 --without-{java,perl,php,python} \
   26                 --without-rcdir \
   27                 --with-optim="$CFLAGS" \
   28                 --disable-tcp-wrappers \
   29                 --enable-acl \
   30                 --disable-{pam,dbus,avahi,systemd}
   31 
   32     make
   33     make BUILDROOT=$PKG install
   34 
   35     # conflict with cups-filters
   36     rm -r $PKG/usr/share/cups/{banners,data}
   37     
   38     # cleanup
   39     rm -rf $PKG/usr/share/{applications,icons}
   40     chmod 0755 $PKG/var/{cache,spool}   
   41     chmod -R +w $PKG
   42 
   43     # start script
   44     install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
   45 
   46     # blacklist usblp kernel module
   47     install -d $PKG/etc/modprobe.d
   48     echo 'blacklist usblp' > $PKG/etc/modprobe.d/cups.conf
   49 }

Generated by cgit