diff options
-rw-r--r-- | libre/foomatic/PKGBUILD | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/libre/foomatic/PKGBUILD b/libre/foomatic/PKGBUILD new file mode 100644 index 000000000..c83ef667b --- /dev/null +++ b/libre/foomatic/PKGBUILD @@ -0,0 +1,94 @@ +# $Id: PKGBUILD 130674 2011-07-07 16:52:03Z andyrtr $ +# Maintainer: Andreas Radke <andyrtr@archlinux.org> + +pkgbase="foomatic" +pkgname=('foomatic-db' 'foomatic-filters-libre' 'foomatic-db-engine') +arch=('i686' 'x86_64') # needs to be changed in the subpackages when makepkg will support it +_snapdate=20110707 +_relver=4.0.7 +pkgver=${_relver}_${_snapdate} +pkgrel=1 +epoch=1 +makedepends=('cups>=1.4.7' 'perl' 'libxml2' 'enscript' 'perl' 'net-snmp' 'bash') +source=(http://www.linuxprinting.org/download/foomatic/$pkgbase-db-engine-${_relver}.tar.gz + http://www.linuxprinting.org/download/foomatic/$pkgbase-db-4.0-${_snapdate}.tar.gz + http://repo.parabolagnulinux.org/other/$pkgbase-filters-libre-${_relver}.tar.gz) +url="http://www.linuxprinting.org/foomatic.html" +options=('!emptydirs') +md5sums=('fcfa8eb9ce5494b81b58ae983fc2aeb5' + '88d467d9099188b170185564bd33d7b7' + 'ffda5eb8ab36564e5b28190e6c5406b2') + +mksource() { + if [ ! -d ${pkgbase}-filters-libre-${_relver}/ ]; then + wget -O - http://www.linuxprinting.org/download/foomatic/$pkgbase-filters-${_relver}.tar.gz | \ + bsdtar xzf - + + mv ${pkgbase}-filters{,-libre}-${_relver}/ + fi + + rm -rfv ${pkgbase}-filters-libre-${_relver}/test/{lsbfuncs,shfuncs,tcm,tetapi}.sh + bsdtar cvzf ${pkgbase}-filters-libre-${_relver}.tar.gz ${pkgbase}-filters-libre-${_relver}/ +} + +build() { + /bin/true +} + +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-filters-libre() { + + pkgdesc="Foomatic - Filter scripts used by the printer spoolers to convert the incoming PostScript data into the printer's native format." +# arch=('i686' 'x86_64') + license=('GPL') + backup=(etc/foomatic/filter.conf) + depends=('glibc') + provides=("foomatic-filters=${pkgver}") + replaces=('foomatic-filters') + conflicts=('foomatic-filters') + optdepends=('perl: for the "beh" Backend End Handler used by cups' + 'net-snmp: certain (mostly HP) printers need it to work') + +# cd ${srcdir}/${pkgname}-${pkgver} + cd ${srcdir}/foomatic-filters-libre-${_relver} + ./configure --prefix=/usr --sysconfdir=/etc + make + make DESTDIR=${pkgdir} install +} + +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}/${pkgname}-${pkgver} + cd ${srcdir}/foomatic-db-engine-${_relver} + ./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} +} + |