🔒 Repository is read-only – file editing is disabled.

recipes/gui/hplip/PAGBUILD.yaml main

63 linii Raw ← Powrót
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
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