blob: c9bd1687da9d030f5e510090b27f3e18c45c0706 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
|
# Maintainer: Dreieck
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor : Rémy Oudompheng <remy@archlinux.org>
# Contributor: Morgan LEFIEUX <comete@archlinuxfr.org>
# PKGBUILD based on [hplip-raw-ledm](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=hplip-raw-ledm) from 2019-11-08.
_pkgname=hplip
_pkgmainver=3.18
pkgname="${_pkgname}-${_pkgmainver}"
pkgver="${_pkgmainver}.12"
pkgrel=1
pkgdesc="HPLIP, fixed version 3.18.x (with supports for some printers which were removed in 3.19), and with patch for uncompressed scanning on LEDM-based peripherals."
arch=('x86_64')
url="http://hplipopensource.com"
license=('GPL')
depends=(
'python-dbus'
'ghostscript'
'net-snmp'
'foomatic-db-engine'
)
makedepends=('python-pyqt5' 'python-gobject' 'sane' 'rpcbind' 'cups' 'libusb')
optdepends=(
'cups: for printing support'
'sane: for scanner support'
'xsane: sane scanner frontend'
'python-pillow: for commandline scanning support'
'python-reportlab: for pdf output in hp-scan'
'rpcbind: for network support'
'python-pyqt5: for running GUI and hp-toolbox'
'python-gobject: for running hp-toolbox'
'libusb: for advanced usb support'
'wget: for network support'
'hplip-plugin: binary blobs for specific devices (AUR) or run hp-setup to download the plugin'
)
provides=(
"hplip=${pkgver}"
"hplip-raw-ledm=${pkgver}"
)
conflicts=(
'hplip'
'hplip-raw-ledm'
)
backup=(
'etc/hp/hplip.conf'
'etc/sane.d/dll.d/hpaio'
)
source=(
"http://downloads.sourceforge.net/hplip/hplip-${pkgver}.tar.gz"
"http://downloads.sourceforge.net/hplip/hplip-${pkgver}.tar.gz.asc"
"disable_upgrade.patch"
"hpscan-ledm-raw.patch"
"0022-Add-include-cups-ppd.h-in-various-places-as-CUPS-2.2.patch"
"0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch"
"hplip-colorlaserjet-mfp-m278-m281.patch"
)
sha1sums=(
'48a3c2dc95bfb83f3a5296de214e6d893c912cb6'
'SKIP'
'2348bcbca0c52dc09cceb47ed13281a4ccb9d83e'
'7e4b095d8bf9a0af9f0d035ca37691f733e271e0'
'2ef86972ab51c0fdcb8bfc653b9f6f69459449a5'
'0e36f31b98faf2f14137431bc8f82b74de22705b'
'89e0ed0ed9acc6e50812c843ffb5f996fffb829e'
)
validpgpkeys=('4ABA2F66DBD5A95894910E0673D770CDA59047B9') # HPLIP (HP Linux Imaging and Printing) <hplip@hp.com>
prepare() {
cd "${_pkgname}-${pkgver}"
# disable insecure update - https://bugs.archlinux.org/task/38083
patch -Np0 -i "${srcdir}/disable_upgrade.patch"
# add missing 'include <cups/ppd.h>' at various places
patch -Np1 -i "${srcdir}/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 "${srcdir}/0023-Fix-handling-of-unicode-filenames-in-sixext.py.patch"
# add support for some missing models - FS#57683
patch -Np1 -i "${srcdir}/hplip-colorlaserjet-mfp-m278-m281.patch"
# patch hpscan
patch -Np1 -i "${srcdir}/hpscan-ledm-raw.patch"
export AUTOMAKE='automake --foreign'
autoreconf --force --install
}
build() {
cd "${_pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--enable-qt5 \
--disable-qt4 \
--enable-hpcups-install \
--enable-cups-drv-install \
--enable-pp-build \
--disable-qt3 \
--enable-doc-build \
--disable-hpijs-only-build \
--disable-lite-build \
--disable-hpcups-only-build \
--disable-hpijs-install \
--disable-new-hpcups \
--enable-hpps-install \
--enable-network-build \
--enable-pp-build \
--disable-class-driver \
--enable-scan-build \
--enable-gui-build \
--enable-fax-build \
--disable-apparmor_build \
--enable-dbus-build \
--disable-cups11-build \
--disable-udev_sysfs_rules \
--disable-shadow-build \
--disable-libusb01_build \
--disable-foomatic-ppd-install \
--disable-foomatic-drv-install \
--disable-cups-ppd-install \
--disable-foomatic-rip-hplip-install \
--enable-policykit \
# --help
make
}
package() {
cd "${_pkgname}-${pkgver}"
make -j1 rulesdir='/usr/lib/udev/rules.d' DESTDIR="${pkgdir}/" install
# remove config provided by sane and autostart of hp-daemon
rm -rf "${pkgdir}/etc"/{sane.d,xdg}
install -dm755 "${pkgdir}/etc/sane.d/dll.d"
echo hpaio > "${pkgdir}/etc/sane.d/dll.d/hpaio"
# remove HAL .fdi file because HAL is no longer used
rm -vrf "${pkgdir}/usr/share/hal"
# remove rc script
rm -vrf "${pkgdir}/etc/init.d"
}
|