pkgname: hplip pkgver: '3.26.4' pkgrel: 1 pkgdesc: HP Linux Imaging and Printing url: 'https://hplipopensource.com' arch: x86_64 depends: [] makedepends: - grep - autoconf - libtool - python - cups - libusb - net-snmp - libjpeg-turbo - sane source: - consolidate.patch - 'https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz' sha256sums: - SKIP - SKIP build: | cd ${pkgname}-${pkgver} patch -Np1 -i ../consolidate.patch export AUTOMAKE='automake --foreign' autoreconf -fi export PYTHON=/usr/bin/python3 export CFLAGS+=" -Wno-deprecated-declarations \ -Wno-implicit-function-declaration \ -Wno-return-mismatch" ./configure --prefix=/usr \ --disable-doc-build \ --enable-lite-build \ --disable-network-build \ --disable-qt4 \ --enable-hpcups-install \ --disable-imageProcessor-build \ --enable-cups-drv-install make package: | cd ${pkgname}-${pkgver} make -j1 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 rm -r ${PKGDIR}/usr/lib/systemd # add mixed license file install -Dt ${PKGDIR}/usr/share/licenses/${pkgname} -m644 COPYING python3 -m compileall -d /usr/share ${PKGDIR}/usr/share python3 -O -m compileall -d /usr/share ${PKGDIR}/usr/share