milis/talimatname/genel/hplip/talimat

63 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-01-31 02:35:21 +01:00
# Description: HP DeskJet, OfficeJet, Photosmart, Business Inkjet ve bazı LaserJet serileri için sürücüler
2016-02-24 01:27:23 +01:00
# URL: http://hplipopensource.com/hplip-web/index.html
2016-11-13 01:08:33 +01:00
# Packager: alihan-ozturk28@hotmail.com
2016-11-15 07:26:57 +01:00
# Depends on: v4l-utils libgphoto2 python3-sip python3-qt5 avahi python3 wget ghostscript foomatic-db foomatic-db-engine usbutils sane xsane cups cups-filters rpcbind libusb libusb-compat net-snmp dbus-python python3-gobject python-notify python3-pillow python3-reportlab
2016-02-24 01:27:23 +01:00
name=hplip
2016-11-13 01:08:33 +01:00
version=3.16.10
release=1
source=(http://downloads.sourceforge.net/$name/$name-$version.tar.gz
0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch
fix_tabs.patch)
2016-02-24 01:27:23 +01:00
build() {
cd $name-$version
2016-11-13 01:08:33 +01:00
patch -Np0 -i $SRC/fix_tabs.patch
patch -Np1 -i $SRC/0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch
2016-02-24 01:27:23 +01:00
# Use system foomatic-rip for hpijs driver instead of foomatic-rip-hplip
# The hpcups driver does not use foomatic-rip
local i
for i in ppd/hpijs/*.ppd.gz ; do
rm -f ${i}.temp
gunzip -c ${i} | sed 's/foomatic-rip-hplip/foomatic-rip/g' | \
gzip > ${i}.temp || return 1
mv ${i}.temp ${i}
done
export AUTOMAKE='automake --foreign'
autoreconf --force --install
./configure --prefix=/usr \
2016-11-13 01:08:33 +01:00
--enable-qt5 \
--disable-qt4 \
2016-02-24 01:27:23 +01:00
--disable-foomatic-rip-hplip-install \
--enable-foomatic-ppd-install \
--enable-hpcups-install \
--enable-new-hpcups \
--enable-cups-ppd-install \
--enable-cups-drv-install \
--enable-hpijs-install \
--enable-foomatic-drv-install \
--enable-pp-build \
--enable-udev-acl-rules \
--enable-dbus-build \
--enable-scan-build \
--enable-fax-build \
--enable-network-build
2017-01-31 02:35:21 +01:00
make
2016-02-24 01:27:23 +01:00
make -j1 rulesdir=/usr/lib/udev/rules.d DESTDIR=$PKG install
# hplip ne connait que lfs 6 ...
mkdir -pv $PKG/etc
echo "lfs 6" > $PKG/etc/issue
# remove config provided by sane and autostart of hp-daemon
rm -rf $PKG/etc/{sane.d,xdg}
# remove HAL .fdi file because HAL is no longer used
rm -vrf $PKG/usr/share/hal
}