summaryrefslogtreecommitdiffstats
path: root/extra/hplip/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/hplip/Pkgfile')
-rwxr-xr-xextra/hplip/Pkgfile37
1 files changed, 20 insertions, 17 deletions
diff --git a/extra/hplip/Pkgfile b/extra/hplip/Pkgfile
index 3002c5999..9aebb2350 100755
--- a/extra/hplip/Pkgfile
+++ b/extra/hplip/Pkgfile
@@ -2,28 +2,31 @@
# URL: http://hplip.sourceforge.net/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on: cups, foomatic-db, foomatic-db-engine, ghostscript, libusb, dbus-python, sane
+# Depends on:
name=hplip
-version=3.9.12
-release=2
+version=3.10.9
+release=1
source=(http://downloads.sourceforge.net/$name/$name-$version.tar.gz)
build() {
-cd $name-$version
- ./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
+ 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