PKGBUILD 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Maintainer (arch): Andreas Radke <andyrtr@archlinux.org>
  2. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  3. # Contrbutor: bill-auger <bill-auger@programmer.net>
  4. # parabola changes and rationale:
  5. # - remove foomatic-db-nonfree recommendation
  6. # - pin to strongly-coupled dependency versions
  7. # - substitute 'systemd' dependency with 'udev'
  8. pkgname=cups-filters
  9. pkgver=1.28.10
  10. pkgrel=1
  11. pkgrel+=.parabola1
  12. pkgdesc="OpenPrinting CUPS Filters"
  13. pkgdesc+=", without foomatic-db-nonfree recommendation"
  14. arch=('x86_64')
  15. arch+=('armv7h' 'i686')
  16. url="https://wiki.linuxfoundation.org/openprinting/cups-filters"
  17. license=('custom')
  18. depends=('lcms2' 'poppler' 'qpdf' 'imagemagick' 'liblouis' 'ijs' 'libcups>=2.2.6-2' 'systemd')
  19. depends=( ${depends[@]/systemd/udev} )
  20. depends+=(libpoppler.so libpoppler-cpp.so)
  21. makedepends=('ghostscript' 'ttf-dejavu' 'python' 'mupdf-tools') # ttf-dejavu for make check
  22. makedepends_i686=('pkgconf')
  23. optdepends=('ghostscript: for non-PostScript printers to print with CUPS to convert PostScript to raster images'
  24. 'foomatic-db: drivers use Ghostscript to convert PostScript to a printable form directly'
  25. 'foomatic-db-engine: drivers use Ghostscript to convert PostScript to a printable form directly'
  26. 'antiword: to convert MS Word documents'
  27. 'docx2txt: to convert Microsoft OOXML text from DOCX files')
  28. backup=(etc/cups/cups-browsed.conf)
  29. source=(https://www.openprinting.org/download/cups-filters/$pkgname-$pkgver.tar.xz)
  30. sha256sums=('cf8c904694c44cf689b5724e46d23da9ae5125d54374b340c642077cc29ca837')
  31. build() {
  32. cd "$pkgname"-$pkgver
  33. ./configure --prefix=/usr \
  34. --sysconfdir=/etc \
  35. --sbindir=/usr/bin \
  36. --localstatedir=/var \
  37. --with-rcdir=no \
  38. --enable-avahi \
  39. --with-browseremoteprotocols=DNSSD,CUPS \
  40. --enable-auto-setup-driverless \
  41. --with-test-font-path=/usr/share/fonts/TTF/DejaVuSans.ttf
  42. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  43. make
  44. }
  45. check() {
  46. cd "$pkgname"-$pkgver
  47. make check
  48. }
  49. package() {
  50. cd "$pkgname"-$pkgver
  51. make DESTDIR="$pkgdir/" install
  52. # add upstream systemd support file
  53. install -Dm644 utils/cups-browsed.service "${pkgdir}"/usr/lib/systemd/system/cups-browsed.service
  54. sed -i "s|/usr/sbin/cups-browsed|/usr/bin/cups-browsed|" "${pkgdir}"/usr/lib/systemd/system/cups-browsed.service
  55. #sed -i "s|cups.service|org.cups.cupsd.service|g" "${pkgdir}"/usr/lib/systemd/system/cups-browsed.service
  56. # use cups group from cups pkg FS#56818
  57. chgrp -R 209 "${pkgdir}"/etc/cups
  58. # license
  59. mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}
  60. install -m644 "${srcdir}"/${pkgname}-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
  61. }