blob: 66b3ca68d1b4e2f31b991b4c9e8ac171744bce4d (
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
|
# Maintainer: megadriver <megadriver at gmx dot com>
# Based on hplip from [extra]
pkgname=hplip-minimal
pkgver=3.15.4
pkgrel=1
pkgdesc="The HP printer drivers, and not much else"
arch=('i686' 'x86_64' 'armv6h')
url="http://hplipopensource.com"
license=('GPL')
depends=('ghostscript>=8.64-6')
makedepends=('cups' 'libusb')
optdepends=('cups: for printing support' 'libusb: for advanced usb support')
conflicts=('hplip')
options=('!docs')
source=("http://downloads.sourceforge.net/hplip/hplip-$pkgver.tar.gz")
md5sums=('2cc12f3c8c2cf023891980c8a6b3fa5d')
prepare() {
cd "$srcdir/hplip-$pkgver"
# https://bugs.archlinux.org/task/30085 - hack found in Gentoo
# 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
}
build() {
cd "$srcdir/hplip-$pkgver"
./configure --prefix=/usr --disable-qt4 --disable-doc-build --disable-dbus-build --disable-network-build \
--disable-scan-build --disable-fax-build --disable-foomatic-rip-hplip-install \
--enable-foomatic-ppd-install --enable-hpcups-only-build --enable-new-hpcups \
--disable-cups-drv-install --enable-cups-ppd-install --enable-pp-build
make
}
package() {
cd "$srcdir/hplip-$pkgver"
make DESTDIR="$pkgdir/" install
# remove config provided by sane and autostart of hp-daemon
rm -rf "$pkgdir"/etc/{sane.d,xdg}
# remove HAL .fdi file because HAL is no longer used
rm -rf "$pkgdir"/usr/share/hal
# remove rc script
rm -rf "$pkgdir"/etc/init.d
}
|