summaryrefslogtreecommitdiffstats
path: root/extra/cupsddk/Pkgfile
blob: f7a0a25a2cc940042079572f0f559912f1de7a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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 

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

	
}