summaryrefslogtreecommitdiffstats
path: root/extra/hplip/Pkgfile
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2010-12-29 10:35:32 +0000
committersibel <lesibel@free.fr>2010-12-29 10:35:32 +0000
commitc2a25d6864a3ab1537c76acf854de31d31f9ecad (patch)
tree7bf6c9f3e6f3feb35e479e4adaf0d6742ca24e25 /extra/hplip/Pkgfile
parenta22c78432e8cf6f22df45ecf0a8080850978c650 (diff)
downloadnutyx-extra-c2a25d6864a3ab1537c76acf854de31d31f9ecad.tar.gz
nutyx-extra-c2a25d6864a3ab1537c76acf854de31d31f9ecad.tar.bz2
nutyx-extra-c2a25d6864a3ab1537c76acf854de31d31f9ecad.tar.xz
nutyx-extra-c2a25d6864a3ab1537c76acf854de31d31f9ecad.zip
hplip#3.10.9-1, maj python
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