mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-02 02:52:46 +02:00
66 lines
2.1 KiB
Plaintext
66 lines
2.1 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.16.11
|
|
pkgrel=0
|
|
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 \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make -j1 DESTDIR="$pkgdir" install || return 1
|
|
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
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
md5sums="7d187c3142ba323a3021767d333ad9f4 hplip-3.16.11.tar.gz
|
|
a9cd9a64bc4e1ba14ef221efdcb0d940 fix-includes.patch"
|
|
sha256sums="f6e20cacb4891e4e60fc5de2213a10f8d0c68840f9b511aa38cfca0cb29f9b24 hplip-3.16.11.tar.gz
|
|
9a1d8b509d7bcacb03895529e3c6c83704ea784444bf0deae75ac59feb9e32b2 fix-includes.patch"
|
|
sha512sums="c59d50adbcc930543b828a81f055653e140987ac9d0b5232cfe6f657078565a3f2a0c96fc13f0dbb575916d59ca76a3447da7cf023bafef900375d4e53d9e180 hplip-3.16.11.tar.gz
|
|
173f0c2bbf0daefc717282bf125d3fd94b3914da0754078c45b58b09ab841672aae9238ca8fc0448486a871e40fc50f960da17c1e07ad3f04053d217ed634498 fix-includes.patch"
|