summaryrefslogtreecommitdiff
path: root/extra/foomatic/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/foomatic/PKGBUILD')
-rw-r--r--extra/foomatic/PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/extra/foomatic/PKGBUILD b/extra/foomatic/PKGBUILD
new file mode 100644
index 000000000..1f4b316ac
--- /dev/null
+++ b/extra/foomatic/PKGBUILD
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+
+pkgbase="foomatic"
+pkgname=('foomatic-db' 'foomatic-db-engine')
+arch=('i686' 'x86_64' 'mips64el') # needs to be changed in the subpackages when makepkg will support it
+_snapdate=20120712
+_filtersver=4.0.17
+_enginever=4.0.8
+pkgver=${_filtersver}_${_snapdate}
+pkgrel=1
+epoch=1
+makedepends=('cups' 'perl' 'libxml2' 'enscript' 'perl' 'net-snmp' 'bash')
+_url1=http://www.openprinting.org/download/foomatic/
+_url2=ftp://ftp.archlinux.org/other/foomatic/
+source=(${_url1}/$pkgbase-db-engine-${_enginever}.tar.gz
+ ${_url2}/$pkgbase-db-4.0-${_snapdate}.tar.gz) # switch after build url1 -> url2
+url="http://www.linuxprinting.org/foomatic.html"
+options=('!emptydirs')
+md5sums=('5283cd5125a96dc0b35d896326512b1a'
+ '7ea8ed6c34495e237d8071ab5821e871')
+
+package_foomatic-db() {
+
+ pkgdesc="Foomatic - The collected knowledge about printers, drivers, and driver options in XML files, used by foomatic-db-engine to generate PPD files."
+# arch=('any')
+ license=('GPL' 'custom')
+ depends=('perl' 'libxml2')
+ replaces=('foomatic-db-ppd' 'foomatic-db-hpijs')
+ conflicts=('foomatic-db-ppd' 'foomatic-db-hpijs')
+ provides=('foomatic-db-hpijs')
+
+ cd ${srcdir}/${pkgname}-${_snapdate}
+ ./configure --prefix=/usr
+ make DESTDIR=${pkgdir} install
+ install -v -Dm644 ${srcdir}/${pkgname}-${_snapdate}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
+}
+
+package_foomatic-db-engine() {
+
+ 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."
+# arch=(i686 x86_64)
+ license=('GPL')
+ depends=('perl' 'libxml2' 'foomatic-filters' 'bash')
+
+ cd ${srcdir}/foomatic-db-engine-${_enginever}
+ ./configure --prefix=/usr
+ make
+ eval `perl -V:archname`
+ make DESTDIR=${pkgdir} \
+ INSTALLARCHLIB=/usr/lib/perl5/vendor_perl/ \
+ INSTALLSITELIB=/usr/lib/perl5/vendor_perl/ \
+ INSTALLSITEARCH=/usr/lib/perl5/vendor_perl/ install
+ /usr/bin/find ${pkgdir} -name '.packlist' -delete
+ # fix permissions
+ chmod 755 ${pkgdir}/usr/lib{,/perl5,/perl5/vendor_perl}
+}