[arch-commits] Commit in foomatic/trunk (PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Sep 4 11:53:47 UTC 2009


    Date: Friday, September 4, 2009 @ 07:53:47
  Author: andyrtr
Revision: 50968

upgpkg: foomatic 4.0.3_20090904-1
    new release 4.0.3, db driver snapshot 20090904; prepeared use of any repo(not yet possible with makepkg); provide the dropped hpijs pkg; unified PKGBUILD for easy splitbuild

Modified:
  foomatic/trunk/PKGBUILD

----------+
 PKGBUILD |  102 ++++++++++++++++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 84 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-09-04 11:48:16 UTC (rev 50967)
+++ PKGBUILD	2009-09-04 11:53:47 UTC (rev 50968)
@@ -1,28 +1,94 @@
 # $Id$
 # Maintainer: Andreas Radke <andyrtr at archlinux.org>
-# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
-
-# build order: foomatic-db / -filters / -db-engines / -db-hpijs / -db-nonfree
  
-pkgname=foomatic-db
-pkgver=4.0_20090903
+pkgbase="foomatic"
+pkgname=('foomatic-db' 'foomatic-filters' 'foomatic-db-engine' 'foomatic-db-nonfree')
+arch=('i686' 'x86_64') # needs to be changed  in the subpackages when makepkg will support it
+_snapdate=20090904
+_relver=4.0.3
+pkgver=${_relver}_${_snapdate}
 pkgrel=1
-pkgdesc="Foomatic is a system for using free software printer drivers with common spoolers on Unix"
-arch=('any')
-license=('GPL' 'custom')
-depends=('perl' 'libxml2')
-makedepends=('cups>=1.4.0')
-replaces=('foomatic-db-ppd')
-conflicts=('foomatic-db-ppd')
-source=(http://www.linuxprinting.org/download/foomatic/$pkgname-${pkgver/_/-}.tar.gz)
+makedepends=('cups>=1.4.0' 'perl' 'libxml2' 'enscript' 'ghostscript>=8.70-2' 'perl' 'net-snmp'
+            'bash')
+source=(http://www.linuxprinting.org/download/foomatic/$pkgbase-{filters,db-engine}-${_relver}.tar.gz
+        http://www.linuxprinting.org/download/foomatic/$pkgbase-db-4.0-${_snapdate}.tar.gz
+        http://www.linuxprinting.org/download/foomatic/$pkgbase-db-nonfree-${_snapdate}.tar.gz)
 url="http://www.linuxprinting.org/foomatic.html"
-replaces=('foomtatic-db-hpijs')
-conflicts=('foomtatic-db-hpijs')
-md5sums=('023d60855f610214b8381a10a86775a4')
+options=('force')
+md5sums=('f2fb7c48cc6b1af6f76dd0529d6dbd98'
+         'fdb02175cc857f63bb06b25ac3b1658b'
+         '67a48acf1647c4df0a77d15968718a1c'
+         '94b072179cc97fe76ba31aed873e59c9')
 
 build() {
-   cd ${srcdir}/${pkgname}-*
+ /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' 'foomtatic-db-hpijs')
+ conflicts=('foomatic-db-ppd' 'foomtatic-db-hpijs')
+
+   cd ${srcdir}/${pkgname}-${_snapdate}
    ./configure --prefix=/usr
    make DESTDIR=${pkgdir} install || return 1
-   install -Dm644 ${srcdir}/${pkgname}-*/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING || return 1
+   install -v -Dm644 ${srcdir}/${pkgname}-${_snapdate}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING || return 1
 }
+
+package_foomatic-filters() {
+
+ pkgdesc="Foomatic is a system for using free software printer drivers with common spoolers on Unix"
+# arch=('i686' 'x86_64')
+ license=('GPL')
+ backup=(etc/foomatic/filter.conf)
+ depends=('ghostscript>=8.70-2')
+ 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-${_relver}
+   ./configure --prefix=/usr --sysconfdir=/etc
+   make || return 1
+   make DESTDIR=${pkgdir} install || return 1
+}
+
+package_foomatic-db-engine() {
+
+ pkgdesc="Foomatic is a system for using free software printer drivers with common spoolers on Unix"
+# arch=(i686 x86_64)
+ license=('GPL')
+ depends=('perl' 'libxml2' 'foomatic-filters>=$pkgver' 'bash')
+
+#   cd ${srcdir}/${pkgname}-${pkgver}
+   cd ${srcdir}/foomatic-db-engine-${_relver}
+    ./configure --prefix=/usr
+   make || return 1
+   eval `perl -V:archname`
+   make DESTDIR=${pkgdir} \
+        INSTALLARCHLIB=/usr/lib/perl5/current/${archname} \
+        INSTALLSITELIB=/usr/lib/perl5/site_perl/current/ \
+        INSTALLSITEARCH=/usr/lib/perl5/site_perl/current/${archname} install || return 1
+   /usr/bin/find ${pkgdir} -name '.packlist' -delete
+   # fix permissions
+   chmod 755 ${pkgdir}/usr/lib{,/perl5,/perl5/site_perl}
+}
+
+package_foomatic-db-nonfree() {
+
+ pkgdesc="Foomatic database extension consisting of manufacturer-supplied PPD files released under non-free licenses which restricts them in how they 
+ can get redistributed"
+# arch=('any')
+ license=('custom')
+ depends=('perl' 'libxml2' "foomatic-db-engine>=4.0.3" 'foomatic-db')
+
+#   cd ${srcdir}/${pkgname}-${_snapdate}
+   cd ${srcdir}/foomatic-db-nonfree-${_snapdate}
+   ./configure --prefix=/usr
+   make DESTDIR=${pkgdir} install || return 1
+#   install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING || return 1
+   install -Dm644 COPYING ${pkgdir}/usr/share/licenses/foomatic-db-nonfree/COPYING || return 1
+}




More information about the arch-commits mailing list