summaryrefslogtreecommitdiffstats
path: root/extra/hplip/Pkgfile
blob: ab1d739f4d0d315046482ae64c8ceebfef7b5326 (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
35
# Description: Pilotes pour les imprimantes HP Deskjet, OfficeJet, Photosmart et Business inkjet
# URL: http://hplipopensource.com/hplip-web/index.html
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: cups, libusb-compat, sane
# Run on: cups,foomatic-db,foomatic-db-engine,ghostscript,libusb,dbus-python,sane

name=hplip
version=3.11.7
release=1
source=(http://downloads.sourceforge.net/$name/$name-$version.tar.gz)
build() {
	cd $name-$version

	find . -type f -exec sed -i 's~^#.*env python~#!/usr/bin/env python2~' {} +

	PYTHON=python2 ./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-fax-build \
		--disable-network-build \
		--disable-doc-build \
		--disable-qt4 \
		--enable-foomatic-ppd-install \
		--enable-foomatic-drv-install \
		--enable-cups-ppd-install \
		--with-hpppddir=/usr/share/cups/model/HP \
		--with-drvdir=/usr/share/cups/dvr/hp
	make
	make DESTDIR=$PKG install
	rm -r $PKG/usr/share/doc
	rm -r $PKG/etc/sane.d
}