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

Andreas Radke andyrtr at archlinux.org
Fri Apr 15 20:37:08 UTC 2016


    Date: Friday, April 15, 2016 @ 22:37:08
  Author: andyrtr
Revision: 265023

upgpkg: foomatic-db 3:20160415-1

build pkg seperate, split ppd files out

Modified:
  foomatic-db/trunk/PKGBUILD	(contents, properties)

----------+
 PKGBUILD |  122 ++++++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 84 insertions(+), 38 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-04-15 19:23:04 UTC (rev 265022)
+++ PKGBUILD	2016-04-15 20:37:08 UTC (rev 265023)
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 259288 2016-02-14 08:43:40Z andyrtr $
+# $Id$
 # Maintainer: Andreas Radke <andyrtr at archlinux.org>
 
-pkgbase="foomatic"
-pkgname=('foomatic-db' 'foomatic-db-ppds') # 'foomatic-db-nonfree')
+pkgbase="foomatic-db"
+pkgname=('foomatic-db' 'foomatic-db-ppds' 'foomatic-db-nonfree' 'foomatic-db-nonfree-ppds')
 arch=('any')
-pkgver=20160214
+pkgver=20160415
 pkgrel=1
 epoch=3
 
@@ -15,26 +15,48 @@
 # check http://bzr.linuxfoundation.org/loggerhead/openprinting/foomatic/
 # for latest commits and development, identical to foomatic-4.0 branch
 
-source=(foomatic-db::bzr+http://bzr.linuxfoundation.org/openprinting/foomatic/foomatic-db/#revision=1295                    #2016-02-04
-        #foomatic-db-nonfree::bzr+http://bzr.linuxfoundation.org/openprinting/foomatic/foomatic-db-nonfree/#revision=41      #2015-06-05
+source=(foomatic-db::bzr+http://bzr.linuxfoundation.org/openprinting/foomatic/foomatic-db/#revision=1298                    #2016-04-04
+        foomatic-db-nonfree::bzr+http://bzr.linuxfoundation.org/openprinting/foomatic/foomatic-db-nonfree/#revision=41      #2015-06-05
 )
-md5sums=('SKIP')
-#         'SKIP')
+md5sums=('SKIP'
+         'SKIP')
 
 pkgver() {
   date +%Y%m%d
 }
 
+prepare(){
+  cp -a foomatic-db foomatic-db-ppds
+  cp -a foomatic-db-nonfree foomatic-db-nonfree-ppds
+}
+
 build() {
   # foomatic-db
-  cd ${srcdir}/foomatic-db
-   bzr revno
-   echo $pkgver
-   ./make_configure
-   ./configure --prefix=/usr
+  pushd foomatic-db
+  ./make_configure
+  ./configure --prefix=/usr \
+    --disable-gzip-ppds \
+    --disable-ppds-to-cups \
+    --with-drivers=NOOBSOLETES,NOEMPTYCMDLINE
+  popd
   
+  # foomatic-db-ppds
+  pushd foomatic-db-ppds
+  ./make_configure
+  ./configure --prefix=/usr
+  popd
+  
   # foomatic-db-nonfree
+  pushd foomatic-db-nonfree
+  ./make_configure
+  ./configure --prefix=/usr
+  popd
   
+  # foomatic-db-nonfree-ppds
+  pushd foomatic-db-nonfree-ppds
+  ./make_configure
+  ./configure --prefix=/usr
+  popd
 }
 
 package_foomatic-db() {
@@ -41,36 +63,60 @@
 
  pkgdesc="Foomatic - The collected knowledge about printers, drivers, and driver options in XML files, used by foomatic-db-engine to generate PPD files."
  license=('GPL' 'custom')
- depends=('perl' 'libxml2')
- replaces=('foomatic-db-ppd' 'foomatic-db-hpijs')
- conflicts=('foomatic-db-ppd' 'foomatic-db-hpijs')
- provides=('foomatic-db-hpijs')
+ optdepends=('foomatic-db-ppds: PostScript PPD files')
 
-   cd ${srcdir}/${pkgname}
-   bzr revno
-   echo $pkgver
-#   ./make_configure
-#   ./configure --prefix=/usr
+   cd ${srcdir}/foomatic-db
+   make DESTDIR=${pkgdir} install
+   
+   # remove files from foomatic-db-ppds pkg
+   rm -rf ${pkgdir}/usr/share/cups/model/foomatic-db-ppds
+   rm -rf ${pkgdir}/usr/share/foomatic/db/source/PPD
+   # add some docs
+   install -Dm644 USAGE ${pkgdir}/usr/share/doc/${pkgname}/USAGE
+   install -Dm644 README ${pkgdir}/usr/share/doc/${pkgname}/README
+   install -v -Dm644 ${srcdir}/${pkgname}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
+}
 
-make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}' | grep ^install
-return 1
+package_foomatic-db-ppds() {
+
+ pkgdesc="Foomatic - PPDs from printer manufacturers"
+ license=('GPL' 'custom')
+
+   cd ${srcdir}/foomatic-db-ppds
    make DESTDIR=${pkgdir} install
+
+   # remove files from foomatic-db pkg
+   rm -rf ${pkgdir}/usr/share/foomatic/db/oldprinterids
+   rm -rf ${pkgdir}/usr/share/foomatic/db/source/{driver,opt,printer}
+   rm -rf ${pkgdir}/usr/share/foomatic/xmlschema
+   rm -f ${pkgdir}/usr/share/foomatic/db/source/PPD/Kyocera/ReadMe.htm
+
    install -v -Dm644 ${srcdir}/${pkgname}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
+}
+
+package_foomatic-db-nonfree() {
+
+ pkgdesc="Foomatic - database extension consisting of manufacturer-supplied PPD files released under non-free licenses"
+ license=('custom')
+ optdepends=('foomatic-db-nonfree-ppds: nonfree PPD files')
+
+   cd ${srcdir}/foomatic-db-nonfree
+   make DESTDIR=${pkgdir} install
+   # remove files from foomatic-db-nonfree-ppds pkg
+   rm -rf ${pkgdir}/usr/share/foomatic/db/source/PPD
    
-   # remove unwanted file that breaks adding printers
-   rm ${pkgdir}/usr/share/foomatic/db/source/PPD/Kyocera/ReadMe.htm
+   install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
 }
 
-#package_foomatic-db-nonfree() {
-#
-# pkgdesc="Foomatic - database extension consisting of manufacturer-supplied PPD files released under non-free licenses"
-# license=('custom')
-# depends=('perl' 'libxml2' "foomatic-db-engine" 'foomatic-db')
+package_foomatic-db-nonfree-ppds() {
 
-#   cd ${srcdir}/foomatic-db-nonfree
-#   bzr revno
-#   ./make_configure
-#   ./configure --prefix=/usr
-#   make DESTDIR=${pkgdir} install
-#   install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
-#}
+ pkgdesc="Foomatic - non-free PPDs from printer manufacturers"
+ license=('custom')
+
+   cd ${srcdir}/foomatic-db-nonfree-ppds
+   make DESTDIR=${pkgdir} install
+   # remove files from foomatic-db-nonfree pkg
+   rm -rf ${pkgdir}/usr/share/foomatic/db/source/driver
+   
+   install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
+}


Property changes on: foomatic-db/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list