Commit e0504245 authored by Eric Vidal's avatar Eric Vidal 💬

upgpkg: 1.25.3-2

parent 974b4e16
Pipeline #161874 passed with stages
in 4 minutes and 25 seconds
# Maintainer: Eric Vidal <eric@obarun.org>
# based on the original https://git.archlinux.org/svntogit/packages.git/log/trunk?h=packages/cups-filters
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Obarun : 66 init/supervisor
# Maintainer : Eric Vidal <eric@obarun.org>
# Maintainer : Jean-Michel T.Dydak <jean-michel@obarun.org>
# PkgSource : url="https://framagit.org/pkg/obextra/cups-filters"
#-----------------------------------------------------------------------------------------------
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=cups-filters
pkgver=1.25.0
pkgrel=2
pkgdesc="OpenPrinting CUPS Filters"
arch=(x86_64)
pkgver=1.25.3
pkgrel=2
url="https://wiki.linuxfoundation.org/openprinting/cups-filters"
license=('custom')
depends=('lcms2' 'poppler' 'qpdf' 'imagemagick' 'liblouis' 'ijs' 'libcups>=2.2.6-2')
makedepends=('ghostscript' 'ttf-dejavu' 'python' 'mupdf-tools') # ttf-dejavu for make check
optdepends=('ghostscript: for non-PostScript printers to print with CUPS to convert PostScript to raster images'
'foomatic-db: drivers use Ghostscript to convert PostScript to a printable form directly'
'foomatic-db-engine: drivers use Ghostscript to convert PostScript to a printable form directly'
'foomatic-db-nonfree: drivers use Ghostscript to convert PostScript to a printable form directly'
'antiword: needed to convert MS Word documents (requires also docx2txt (AUR)')
backup=(etc/cups/cups-browsed.conf)
source=(https://www.openprinting.org/download/cups-filters/$pkgname-$pkgver.tar.xz)
sha256sums=('8119149a8b61466e94c141205a5a9d2de798fe7a932a260ce2d66f8f30d351d1')
track=
target="$pkgname-$pkgver.tar.xz"
source=(https://www.openprinting.org/download/cups-filters/${target})
#-------------------------------------| BUILD CONFIGURATION |-----------------------------------
makedepends=(
'ghostscript'
'ttf-dejavu'
'python'
'mupdf-tools') # ttf-dejavu for make check
#--------------------------------------------| BUILD |------------------------------------------
build() {
cd $pkgname-$pkgver
cd $pkgname-$pkgver
# Ignore const-related errors (remove once fixed upstream)
#CXXFLAGS+=' -fpermissive'
./configure --prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--localstatedir=/var \
--with-rcdir=no \
--disable-avahi \
--with-browseremoteprotocols=DNSSD,CUPS \
--enable-auto-setup-driverless \
--with-test-font-path=/usr/share/fonts/TTF/DejaVuSans.ttf
make
./configure --prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--localstatedir=/var \
--with-rcdir=no \
--disable-avahi \
--with-browseremoteprotocols=DNSSD,CUPS \
--enable-auto-setup-driverless \
--with-test-font-path=/usr/share/fonts/TTF/DejaVuSans.ttf
make
}
#--------------------------------------------| CHECK |------------------------------------------
check() {
cd $pkgname-$pkgver
make check
}
#-------------------------------------------| PACKAGE |-----------------------------------------
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir/" install
......@@ -55,3 +64,30 @@ package() {
mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}
install -m644 "${srcdir}"/${pkgname}-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
}
#------------------------------------| INSTALL CONFIGURATION |----------------------------------
arch=(x86_64)
backup=(etc/cups/cups-browsed.conf)
depends=(
'lcms2'
'poppler'
'qpdf'
'imagemagick'
'liblouis'
'ijs'
'libcups>=2.2.6-2')
optdepends=('ghostscript: for non-PostScript printers to print with CUPS to convert PostScript to raster images'
'foomatic-db: drivers use Ghostscript to convert PostScript to a printable form directly'
'foomatic-db-engine: drivers use Ghostscript to convert PostScript to a printable form directly'
'foomatic-db-nonfree: drivers use Ghostscript to convert PostScript to a printable form directly'
'antiword: needed to convert MS Word documents (requires also docx2txt (AUR)')
#-------------------------------------| SECURITY AND LICENCE |----------------------------------
license=('custom')
sha256sums=('8119149a8b61466e94c141205a5a9d2de798fe7a932a260ce2d66f8f30d351d1')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment