# Maintainer: Dimitris Tzemos <djemos(at)slackel(dot)gr>

pkgname=pnm2ppa
pkgver=1.13
pkgrel=1dj
url="http://pnm2ppa.sourceforge.net/"
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
"HP-DeskJet_1000C-pnm2ppa.ppd" "HP-DeskJet_710C-pnm2ppa.ppd"
"HP-DeskJet_712C-pnm2ppa.ppd" "HP-DeskJet_720C-pnm2ppa.ppd"
"HP-DeskJet_722C-pnm2ppa.ppd" "HP-DeskJet_820C-pnm2ppa.ppd"
)

slackdesc=\
(
 #|-----handy-ruler------------------------------------------------------|
"pnm2ppa (Ghostscript print filter for HP printers)"
"Ghostscript print filter for owners of HP DeskJet 710C, 712C, 720C,"
"722C, 820Cse, 820Cxi, 1000Cse, or 1000Cxi printers."
""
"Homepage: http://pnm2ppa.sourceforge.net/"

)

build() {
  cd $SRC/$pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc 
  make  || return 1 
  make DESTDIR=$PKG install || return 1 
  mkdir -p $PKG/usr/share/cups/model/  || return 1 
  cd $SRC
  cp HP-DeskJet_{1000C,710C,712C,720C,722C,820C}-pnm2ppa.ppd $PKG/usr/share/cups/model/
}