52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
# Template file for 'cups-filters'
|
|
pkgname=cups-filters
|
|
version=1.21.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --with-rcdir=no --enable-avahi
|
|
--with-browseremoteprotocols=DNSSD,CUPS"
|
|
hostmakedepends="ghostscript glib-devel mupdf-tools pkg-config poppler-utils"
|
|
makedepends="avahi-glib-libs-devel cups-devel fontconfig-devel
|
|
ghostscript-devel lcms2-devel libqpdf-devel libqpdf-devel poppler-cpp-devel"
|
|
depends="bc ghostscript libcups-filters-${version}_${revision} poppler-utils"
|
|
checkdepends="dejavu-fonts-ttf"
|
|
conf_files="/etc/cups/cups-browsed.conf"
|
|
short_desc="The OpenPrinting CUPS Filters"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later, MIT"
|
|
homepage="https://wiki.linuxfoundation.org/openprinting/cups-filters"
|
|
distfiles="http://openprinting.org/download/cups-filters/${pkgname}-${version}.tar.xz"
|
|
checksum=2203060fd55406e5454b52a7b4bf8906a29a26fdc5777df75709443a5a78e09b
|
|
|
|
lib32disabled=yes
|
|
|
|
pre_check() {
|
|
ln -s /usr/share/fonts/TTF /usr/share/fonts/dejavu
|
|
}
|
|
|
|
post_check() {
|
|
rm -f -- /usr/share/fonts/dejavu
|
|
}
|
|
|
|
post_install() {
|
|
vsv cups-browsed
|
|
vlicense COPYING
|
|
}
|
|
|
|
libcups-filters_package() {
|
|
short_desc+=" - shared library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
libcups-filters-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="libcups-filters-${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|