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
# URL: http://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
2019-08-19 11:28:39 +02:00
version=2.2.12
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
2015-08-04 12:09:18 +02:00
cups)
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="" \
2006-11-20 15:57:50 +01:00
--without-{java,perl,php,python} \
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
# start script
install -D -m 755 $SRC/cups $PKG/etc/rc.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
}