# Description: Le kit de développement pour les pilotes CUPS
# URL: http://www.cups.org/ddk/index.php
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: cups gnutls kerberos
# Run on: cups,gnutls,kerberos

name=cupsddk
version=1.2.3
release=1
source="ftp://ftp.easysw.com/pub/cupsddk/$version/$name-$version-source.tar.bz2"

build() {
	cd $name-$version
        ./configure --prefix=$PKG/usr
        make
        make prefix=$PKG/usr \
	CUPS_DATADIR=$PKG/`cups-config --datadir` \
	CUPS_SERVERBIN=$PKG/`cups-config --serverbin` \
	install
        rm -rf $PKG/usr/share/doc
        rm -rf $PKG/usr/share/cupsddk/po
	for i in ppdc.1.gz ppdhtml.1.gz ppdi.1.gz ppdmerge.1.gz ppdpo.1.gz
		do rm $PKG/usr/share/man/man1/$i
	done
	rm -r $PKG/usr/share/man/man5
	rm -r $PKG/usr/lib/cups/filter
	rm -r $PKG/usr/include
	for i in ppdc ppdhtml ppdi ppdmerge ppdpo
		do rm $PKG/usr/bin/$i
	done

	
}