Commit 9f1dcdaa authored by jean-michel's avatar jean-michel
Browse files

pkg update and review

parent c4037460
Pipeline #212754 passed with stages
in 3 minutes and 7 seconds
# 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 |---------------------------------------
# Obarun PkgSrc : https://framagit.org/pkg/obextra/cups-filters/
#----------------
# Maintainer : Andreas Radke <andyrtr@archlinux.org>
# Arch PkgSrc : https://www.archlinux.org/packages/extra/x86_64/cups-filters/
#----------------
# Website : https://wiki.linuxfoundation.org/openprinting/cups-filters/
#------------------------------------------------------------------------------
#--DESCRIPTION-----------------------------------------------------------------
pkgname=cups-filters
pkgdesc="OpenPrinting CUPS Filters"
pkgver=1.26.2
pkgver=1.27.0
pkgrel=2
url="https://wiki.linuxfoundation.org/openprinting/cups-filters"
url="https://www.openprinting.org/download/cups-filters"
track=
target="$pkgname-$pkgver.tar.xz"
source=(https://www.openprinting.org/download/cups-filters/${target})
source=($url/$target)
#-------------------------------------| BUILD CONFIGURATION |-----------------------------------
#--BUILD CONFIGURATION---------------------------------------------------------
makedepends=(
'ghostscript'
'ttf-dejavu'
'python'
'mupdf-tools') # ttf-dejavu for make check
#--------------------------------------------| BUILD |------------------------------------------
'ghostscript'
'ttf-dejavu'
'python'
'mupdf-tools') # ttf-dejavu for make check
#--BUILD CONTROL---------------------------------------------------------------
path=(
--prefix=/usr
--sysconfdir=/etc
--sbindir=/usr/bin
--localstatedir=/var
)
flags=(
--with-rcdir=no
--with-browseremoteprotocols=DNSSD,CUPS
--with-test-font-path=/usr/share/fonts/TTF/DejaVuSans.ttf
--enable-auto-setup-driverless
--disable-avahi
)
#--BUILD-----------------------------------------------------------------------
build() {
cd $pkgname-$pkgver
./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
cd $pkgname-$pkgver
./configure "${path[@]}" "${flags[@]}"
make
}
#--------------------------------------------| CHECK |------------------------------------------
#--CHECK-----------------------------------------------------------------------
check() {
cd $pkgname-$pkgver
make check
}
#-------------------------------------------| PACKAGE |-----------------------------------------
#--PACKAGE---------------------------------------------------------------------
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir/" install
# use lp group from cups pkg FS#56818
chgrp -R 209 ${pkgdir}/etc/cups
# license
mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}
install -m644 "${srcdir}"/${pkgname}-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
cd $pkgname-$pkgver
make DESTDIR="$pkgdir/" install
## use lp group from cups pkg FS#56818
chgrp -R 209 ${pkgdir}/etc/cups
## license
mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}
install -m644 "${srcdir}"/${pkgname}-${pkgver}/COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/
}
#------------------------------------| INSTALL CONFIGURATION |----------------------------------
#--INSTALL CONFIGURATION-------------------------------------------------------
arch=(x86_64)
backup=(etc/cups/cups-browsed.conf)
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 |----------------------------------
'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=('b6e80020aef4fd2ad62674cfde1d68ebadd56ca170293fcba023d4628bef3c1f')
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