summaryrefslogtreecommitdiff
path: root/cups/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'cups/Pkgfile')
-rw-r--r--cups/Pkgfile87
1 files changed, 44 insertions, 43 deletions
diff --git a/cups/Pkgfile b/cups/Pkgfile
index d1e27c6cf..e197af17e 100644
--- a/cups/Pkgfile
+++ b/cups/Pkgfile
@@ -1,48 +1,49 @@
# Description: CUPS - Common UNIX Printing System
-# URL: https://www.cups.org
-# Maintainer: Juergen Daubert, jue at crux dot nu
-# Depends on: acl libusb zlib linux-pam
+# URL: https://openprinting.github.io/cups/
+# Maintainer: Juergen Daubert, jue at crux dot nu
+# Depends on: acl libusb zlib linux-pam
name=cups
-version=2.3.3
+version=2.4.0
release=1
-source=(https://github.com/apple/cups/releases/download/v$version/$name-$version-source.tar.gz
- cups.rc cups.pam)
-
-build () {
- cd $name-$version
-
- CC=cc CXX=c++ \
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --libdir=/usr/lib \
- --localstatedir=/var \
- --with-docdir=/usr/share/cups/doc \
- --with-logdir=/var/log/cups \
- --with-cups-user=daemon \
- --with-cups-group=lp \
- --with-languages="" \
- --without-rcdir \
- --with-optim="$CFLAGS" \
- --enable-acl \
- --disable-{gnutls,gssapi,systemd}
-
- make
- make BUILDROOT=$PKG install
-
- # conflict with cups-filters
- rm -r $PKG/usr/share/cups/{banners,data}
-
- # cleanup
- rm -rf $PKG/usr/share/{applications,icons}
- chmod 0755 $PKG/var/{cache,spool}
- chmod -R +w $PKG
-
- # 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
+source=(https://github.com/OpenPrinting/cups/releases/download/v$version/$name-$version-source.tar.gz
+ cups.rc cups.pam)
+
+build() {
+ cd $name-$version
+
+ CC=cc CXX=c++ \
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libdir=/usr/lib \
+ --localstatedir=/var \
+ --with-docdir=/usr/share/cups/doc \
+ --with-logdir=/var/log/cups \
+ --with-cups-user=daemon \
+ --with-cups-group=lp \
+ --with-languages="" \
+ --without-rcdir \
+ --with-optim="$CFLAGS" \
+ --enable-acl \
+ --disable-{gnutls,gssapi,systemd}
+
+ make
+ make BUILDROOT=$PKG install
+
+ # conflict with cups-filters
+ rm -r $PKG/usr/share/cups/{banners,data}
+
+ # cleanup
+ rm -rf $PKG/usr/share/{applications,icons}
+ chmod 0755 $PKG/var/{cache,spool}
+ chmod -R +w $PKG
+
+ # 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
}

Generated by cgit