opt/cups/Pkgfile

50 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
2015-06-27 17:49:37 +02:00
# Depends on: acl libusb zlib
2006-02-23 16:26:10 +01:00
name=cups
2016-02-07 17:53:15 +01:00
version=2.1.3
2015-08-04 12:09:18 +02:00
release=1
2016-03-17 18:24:26 +01:00
source=(http://crux.s3.amazonaws.com/dist/$name-release-$version.tar.gz
2015-08-04 12:09:18 +02:00
cups)
2006-02-23 16:26:10 +01:00
build () {
2016-03-17 18:24:26 +01:00
cd $name-release-$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" \
2015-06-27 17:49:37 +02:00
--disable-tcp-wrappers \
2011-07-27 10:17:30 +02:00
--enable-acl \
2014-12-10 18:06:32 +01:00
--disable-{pam,dbus,avahi,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
}