2018-07-20 09:44:31 +02:00
|
|
|
|
# Tanım: HP DeskJet, OfficeJet, Photosmart, Business Inkjet ve bazı LaserJet serileri için sürücü
|
2018-06-09 00:06:58 +02:00
|
|
|
|
# URL: http://hplipopensource.com/hplip-web/index.html
|
2018-08-20 16:02:36 +02:00
|
|
|
|
# Paketçi: milisarge
|
2018-06-09 00:06:58 +02:00
|
|
|
|
# Gerekler: 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
|
2018-08-09 13:33:51 +02:00
|
|
|
|
# Grup: sürücü
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
isim=hplip
|
2018-08-20 16:02:36 +02:00
|
|
|
|
surum=3.18.6
|
2018-06-09 00:06:58 +02:00
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(http://downloads.sourceforge.net/$isim/$isim-$surum.tar.gz
|
2018-08-20 16:02:36 +02:00
|
|
|
|
disable_upgrade.patch
|
2018-06-09 00:06:58 +02:00
|
|
|
|
0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch
|
2018-08-20 16:02:36 +02:00
|
|
|
|
0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch)
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
derle() {
|
2018-08-20 16:02:36 +02:00
|
|
|
|
cd $isim-$surum
|
|
|
|
|
|
|
|
|
|
patch -Np0 -i ${SRC}/disable_upgrade.patch
|
|
|
|
|
|
|
|
|
|
# add missing 'include <cups/ppd.h>' at various places
|
|
|
|
|
patch -Np1 -i ${SRC}/0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch
|
|
|
|
|
# fix some handling unicode file names FS#58412
|
|
|
|
|
patch -Np1 -i ${SRC}/0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch
|
|
|
|
|
export PYTHON=/usr/bin/python3
|
|
|
|
|
export AUTOMAKE='automake --foreign'
|
|
|
|
|
autoreconf --force --install
|
|
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--enable-qt5 \
|
|
|
|
|
--disable-qt4 \
|
|
|
|
|
--disable-policykit \
|
|
|
|
|
--enable-hpcups-install \
|
|
|
|
|
--enable-cups-drv-install \
|
|
|
|
|
--enable-pp-build #--help
|
|
|
|
|
make
|
|
|
|
|
make -j1 rulesdir=/usr/lib/udev/rules.d DESTDIR="$PKG/" install
|
|
|
|
|
|
|
|
|
|
# remove config provided by sane and autostart of hp-daemon
|
|
|
|
|
rm -rf "$PKG"/etc/{sane.d,xdg}
|
|
|
|
|
install -dm755 ${PKG}/etc/sane.d/dll.d
|
|
|
|
|
echo hpaio > ${PKG}/etc/sane.d/dll.d/hpaio
|
|
|
|
|
|
|
|
|
|
# remove HAL .fdi file because HAL is no longer used
|
|
|
|
|
rm -vrf "$PKG"/usr/share/hal
|
|
|
|
|
#systemd sil
|
|
|
|
|
rm -vrf "$PKG"/usr/lib/systemd
|
|
|
|
|
# remove rc script
|
|
|
|
|
rm -vrf "$PKG"/etc/init.d
|
|
|
|
|
#doc sil
|
|
|
|
|
rm -vrf "$PKG"/usr/share/doc
|
|
|
|
|
|
|
|
|
|
# add mixed license file
|
|
|
|
|
install -Dt "${PKG}"/usr/share/licenses/${isim} -m644 COPYING
|
|
|
|
|
cd $PKG/usr/share/hplip
|
|
|
|
|
grep -rli python | xargs sed -i "s/\/usr\/bin\/env python/\/usr\/bin\/env python3/g"
|
2018-06-09 00:06:58 +02:00
|
|
|
|
}
|