* add libcupsfilter

This commit is contained in:
Alexander Baldeck 2023-11-08 10:36:28 +01:00
parent b5f3b157ad
commit a9630e97c5

40
libcupsfilters/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgname=libcupsfilters
pkgver=2.0.0
pkgrel=1
pkgdesc="OpenPrinting CUPS Filters - contains all the code of the filters of the former cups-filters package as library functions"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://github.com/OpenPrinting/libcupsfilters"
license=('Apache')
depends=('libcups' 'libexif' 'qpdf' 'poppler'
'libjpeg-turbo' 'libpng' 'libtiff' 'lcms2' 'fontconfig' 'glibc' 'gcc-libs' 'dbus')
makedepends=(
'ghostscript'
# 'mupdf-tools' ???
)
checkdepends=('ttf-dejavu') # ttf-dejavu for make check
source=("https://github.com/OpenPrinting/libcupsfilters/releases/download/$pkgver/$pkgname-$pkgver.tar.xz")
sha256sums=('542f2bfbc58136a4743c11dc8c86cee03c9aca705612654e36ac34aa0d9aa601')
build() {
cd "$pkgname"-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
--sbindir=/usr/bin \
--localstatedir=/var \
--disable-mutool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd "$pkgname"-$pkgver
make check
}
package() {
cd "$pkgname"-$pkgver
make DESTDIR="$pkgdir/" install
}