mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
67 lines
1.8 KiB
Plaintext
67 lines
1.8 KiB
Plaintext
# Maintainer:
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
|
|
# Contributor: Timo Teräs <timo.teras@iki.fi>
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
|
|
pkgname=hplip
|
|
pkgver=3.17.4
|
|
pkgrel=1
|
|
pkgdesc="Drivers for HP printers and scanners"
|
|
arch=all
|
|
url="http://hplipopensource.com"
|
|
license="GPL"
|
|
depends=""
|
|
makedepends="libjpeg-turbo-dev net-snmp-dev cups-dev libusb-dev sane-dev"
|
|
subpackages="$pkgname-doc $pkgname-libs sane-backend-hpaio:sane"
|
|
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
|
|
fix-includes.patch"
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
prepare() {
|
|
default_prepare
|
|
update_config_guess
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure --prefix=/usr \
|
|
--with-docdir=/usr/share/doc/$pkgname \
|
|
--enable-lite-build \
|
|
--disable-doc-build \
|
|
--disable-gui-build \
|
|
--disable-fax-build \
|
|
--disable-dbus-build \
|
|
--enable-cups-drv-install \
|
|
--enable-cups-ppd-install
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make -j1 DESTDIR="$pkgdir" install
|
|
rm -fr "$pkgdir"/usr/bin \
|
|
"$pkgdir"/etc/udev \
|
|
"$pkgdir"/etc/sane.d \
|
|
"$pkgdir"/usr/share/hal \
|
|
"$pkgdir"/usr/lib/systemd \
|
|
"$pkgdir"/usr/lib/cups/filter/pstotiff
|
|
install -m755 -D prnt/filters/hpps "$pkgdir"/usr/lib/cups/filter/hpps
|
|
}
|
|
|
|
sane() {
|
|
depends="sane"
|
|
pkgdesc="SANE backend for HP multi-function peripherals"
|
|
provides="$pkgname-sane"
|
|
mkdir -p "$subpkgdir"/usr/lib \
|
|
"$subpkgdir"/etc/sane.d/dll.d
|
|
mv "$pkgdir"/usr/lib/sane "$subpkgdir"/usr/lib
|
|
echo "hpaio" > "$subpkgdir"/etc/sane.d/dll.d/hpaio
|
|
}
|
|
|
|
sha512sums="ea295502df5b6c44839a7c03a725dc7475d256994eac2a7950058a68c805ca4942611df2688384c8acbc6551009841bb4623e7a3e7c8c0b16f44a2215a7316e6 hplip-3.17.4.tar.gz
|
|
173f0c2bbf0daefc717282bf125d3fd94b3914da0754078c45b58b09ab841672aae9238ca8fc0448486a871e40fc50f960da17c1e07ad3f04053d217ed634498 fix-includes.patch"
|