# Description: HP printer drivers foo2zjs # URL: https://github.com/koenkooi/foo2zjs # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: cups-filters gnutls name=foo2zjs version=e04290d release=5 source=(https://github.com/koenkooi/foo2zjs/archive/$version/$name-e04290de6b7a30d588f3411fd9834618e09f7b9b.tar.gz destdir.patch) build() { cd $name-${version}* # stupid workaround (make will break) for something that will not be included in the package... #touch manual.pdf # use DESTDIR variable... patch -p1 -i $SRC/destdir.patch make -j1 # Create these or it will complain mkdir -p $PKG/usr/share/foomatic/db/source mkdir -p $PKG/usr/lib/cups/filter # Where do you want PPD files? Uncomment one: mkdir -p $PKG/usr/share/ppd #mkdir -p $PKG/usr/share/cups/model # The hplj10xx_gui.tcl requires tix, and I really do not need it # mkdir -p $PKG/usr/share/{applications,pixmaps} make DESTDIR=$PKG install make DESTDIR=$PKG install-hotplug rm -rf $PKG/usr/share/doc/$name }