1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 pkgname=foomatic-db-engine
8 url="http://www.linuxprinting.org/foomatic.html"
9 pkgdesc="Foomatic - Foomatic's database engine generates PPD files from the data in Foomatic's XML database. It also contains scripts to directly generate print queues and handle jobs."
11 depends=('perl' 'libxml2' "cups-filters>=1.0.42" 'bash' 'perl-xml-libxml' 'perl-clone' 'perl-dbi')
12 makedepends=('cups' 'ghostscript' 'a2ps' 'wget' 'perl-xml-libxml' 'foomatic-db' 'git')
13 optdepends=('foomatic-db: linuxprinting.org xml files database to create ppd driver files')
14 backup=('etc/foomatic/defaultspooler')
16 # check https://github.com/OpenPrinting/foomatic-db-engine
18 #source=(foomatic-db-engine::git+https://github.com/OpenPrinting/foomatic-db-engine#commit=068c92311018a75c621c57328845b439d789bf50 #20200131 # master development branch
19 source=(foomatic-db-engine::git+https://github.com/OpenPrinting/foomatic-db-engine-4#commit=bd265b77a9f66f672bf1e3f0803145f2eccabf06 #20200131 # master stable branch
28 export LIB_CUPS="/usr/lib/cups"
29 cd "$pkgname" #-$pkgver
31 PERL_INSTALLDIRS=vendor \
32 ./configure --prefix=/usr \
38 cd "$pkgname" #-$pkgver
39 make DESTDIR="${pkgdir}" install
41 # preset default spooler
42 echo cups > "${pkgdir}"/etc/foomatic/defaultspooler
44 install -Dm644 USAGE "${pkgdir}"/usr/share/doc/${pkgname}/USAGE
45 install -Dm644 README "${pkgdir}"/usr/share/doc/${pkgname}/README
48 rm -r "${pkgdir}"/usr/lib/perl5