blob: 97bd0ea2cad7287890772c68e8de5b09e0e18b16 (
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
|
# Maintainer: yuhldr <yuhldr@gmail.com>
_pkgname=hplip
pkgname="${_pkgname}-lite"
pkgver=3.24.4
pkgrel=3
pkgdesc="Only Print drivers for HP DeskJet, OfficeJet, Photosmart, Business Inkjet and some LaserJet"
arch=('x86_64')
url="https://hplipopensource.com"
license=('GPL2' 'custom')
depends=(libjpeg-turbo libcups)
makedepends=(python libusb)
provides=('hplip')
backup=('etc/hp/hplip.conf')
conflicts=('hplip')
optdepends=('cups: for printing support' 'system-config-printer')
source=(
"https://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
"hplip-pserror-gcc14.patch"
)
sha256sums=(
"5d7643831893a5e2addf9d42d581a5dbfe5aaf023626886b8762c5645da0f1fb"
"SKIP"
)
prepare() {
cd "${_pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/hplip-pserror-gcc14.patch"
}
build() {
cd "${_pkgname}-${pkgver}"
./configure --prefix=/usr \
--enable-lite-build \
--enable-hpcups-install \
--enable-cups-drv-install \
--disable-doc-build \
--disable-fax-build \
--disable-network-build \
--disable-imageProcessor-build \
--disable-scan-build
make -j $(($(nproc) - 1))
}
package() {
cd "${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}/" install
install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 COPYING
}
|