archrelease: copy trunk to extra-x86_64
[arch-packages.git] / foomatic-db-engine / trunk / PKGBUILD
blob87fa2f2d469c0629203e7f4ec6553a148582c25a
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 pkgname=foomatic-db-engine
4 arch=('x86_64')
5 pkgver=20220521
6 pkgrel=1
7 epoch=4
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."
10 license=('GPL2')
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
21 sha256sums=('SKIP')
23 pkgver() {
24   date +%Y%m%d
27 build() {
28   export LIB_CUPS="/usr/lib/cups"
29   cd "$pkgname" #-$pkgver
30   ./make_configure
31   PERL_INSTALLDIRS=vendor \
32   ./configure --prefix=/usr \
33     --sbindir=/usr/bin
34   make
37 package() {
38   cd "$pkgname" #-$pkgver
39   make DESTDIR="${pkgdir}" install
41   # preset default spooler
42   echo cups > "${pkgdir}"/etc/foomatic/defaultspooler
43   # add some docs
44   install -Dm644 USAGE "${pkgdir}"/usr/share/doc/${pkgname}/USAGE
45   install -Dm644 README "${pkgdir}"/usr/share/doc/${pkgname}/README
47   # cleanup
48   rm -r "${pkgdir}"/usr/lib/perl5