blob: d906cba21ad6c4a0a57ab04004a18b96aeed7b25 (
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 linux-pam
5
6 name=cups
7 version=2.3.1
8 release=1
9 source=(https://github.com/apple/cups/releases/download/v$version/$name-$version-source.tar.gz
10 cups.rc cups.pam)
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-rcdir \
26 --with-optim="$CFLAGS" \
27 --enable-acl \
28 --disable-{gnutls,gssapi,systemd}
29
30 make
31 make BUILDROOT=$PKG install
32
33 # conflict with cups-filters
34 rm -r $PKG/usr/share/cups/{banners,data}
35
36 # cleanup
37 rm -rf $PKG/usr/share/{applications,icons}
38 chmod 0755 $PKG/var/{cache,spool}
39 chmod -R +w $PKG
40
41 # start script and pam module
42 install -D -m 755 $SRC/cups.rc $PKG/etc/rc.d/cups
43 install -D -m 644 $SRC/cups.pam $PKG/etc/pam.d/cups
44
45 # blacklist usblp kernel module
46 install -d $PKG/etc/modprobe.d
47 echo 'blacklist usblp' > $PKG/etc/modprobe.d/cups.conf
48 }
|