opt/cups/Pkgfile

49 lines
1.4 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: CUPS - Common UNIX Printing System
2020-06-06 13:00:05 +02:00
# URL: https://www.cups.org
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2019-05-28 11:02:19 +02:00
# Depends on: acl libusb zlib linux-pam
2006-02-23 16:26:10 +01:00
name=cups
version=2.3.3
2019-08-19 11:28:39 +02:00
release=1
2016-10-04 15:19:54 +02:00
source=(https://github.com/apple/cups/releases/download/v$version/$name-$version-source.tar.gz
2019-08-27 13:26:44 +02:00
cups.rc cups.pam)
2006-02-23 16:26:10 +01:00
build () {
2016-07-21 11:44:40 +02:00
cd $name-$version
2009-09-17 13:40:05 +02:00
CC=cc CXX=c++ \
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib \
2006-02-23 16:26:10 +01:00
--localstatedir=/var \
--with-docdir=/usr/share/cups/doc \
--with-logdir=/var/log/cups \
--with-cups-user=daemon \
--with-cups-group=lp \
2006-05-14 14:07:48 +02:00
--with-languages="" \
2014-10-20 18:20:21 +02:00
--without-rcdir \
--with-optim="$CFLAGS" \
2011-07-27 10:17:30 +02:00
--enable-acl \
--disable-{gnutls,gssapi,systemd}
2006-05-14 14:07:48 +02:00
2006-02-23 16:26:10 +01:00
make
make BUILDROOT=$PKG install
2006-02-23 16:26:10 +01:00
# conflict with cups-filters
rm -r $PKG/usr/share/cups/{banners,data}
# cleanup
2014-10-20 18:20:21 +02:00
rm -rf $PKG/usr/share/{applications,icons}
2006-10-14 10:56:58 +02:00
chmod 0755 $PKG/var/{cache,spool}
2009-09-17 13:40:05 +02:00
chmod -R +w $PKG
2019-08-27 13:26:44 +02:00
# start script and pam module
install -D -m 755 $SRC/cups.rc $PKG/etc/rc.d/cups
install -D -m 644 $SRC/cups.pam $PKG/etc/pam.d/cups
# blacklist usblp kernel module
install -d $PKG/etc/modprobe.d
echo 'blacklist usblp' > $PKG/etc/modprobe.d/cups.conf
2006-02-23 16:26:10 +01:00
}