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

recipes/gui/sane/PAGBUILD.yaml main

35 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435
pkgname: sane
pkgver: '1.4.0'
pkgrel: '4'
pkgdesc: Scanner Access Now Easy
url: 'https://gitlab.com/sane-project/backends'
arch: x86_64
license:
- GPL-2.0-or-later
- LicenseRef-GPL-2.0-or-later-with-linking-exception
depends: []
makedepends:
- libusb-compat
- libjpeg-turbo
- libtiff
- gtk2
- libexif
- cups
- net-snmp
- avahi
- poppler-glib
- autoconf-archive
source:
- 'https://gitlab.com/sane-project/backends/-/archive/${pkgver}/backends-${pkgver}.tar.gz'
sha256sums:
- 9c50ee76e35d98d7ae0cbb97d4c2a3c15663a78fdd74b0ed2bf2fe8e1a73f63a
build: "cd backends-${pkgver}\n\n        # Fix autotools macro not detecting the right version:\n # https://gitlab.com/sane-project/backends/-/issues/440\n\
  \ echo \"${pkgver}\" > .tarball-version\n echo \"${pkgver}\" > .version\n autoreconf -fiv\n\n./configure --prefix=/usr \\\
  \n               --sbindir=/usr/bin \\\n\t--localstatedir=/var \\\n\t--sysconfdir=/etc \\\n\t--with-docdir=/usr/share/doc/sane-backend-${pkgver}\
  \ \\\n\t--enable-libusb_1_0 \\\n\t--enable-avahi \\\n\t--with-group=scanner\nmake\nmake DESTDIR=${PKGDIR} install\n\ninstall\
  \ -d ${PKGDIR}/etc/udev/rules.d\ninstall -m 644 -v tools/udev/libsane.rules \\\n\t${PKGDIR}/etc/udev/rules.d/65-scanner.rules\n\
  \n # fix hp officejets\necho \"#hpaio\" >> ${PKGDIR}/etc/sane.d/dll.conf\n\ninstall -v -m644 doc/sane.png doc/sane-logo.png\
  \ \\\n\t${PKGDIR}/usr/share/sane\n\nmkdir -p ${PKGDIR}/var/lock/sane\nchmod 775 ${PKGDIR}/var/lock/sane\nchgrp scanner ${PKGDIR}/var/lock/sane\n\
  \n# Obsolet libs\nrm -f ${PKGDIR}/usr/lib/libsane.la\nrm -f ${PKGDIR}/usr/lib/sane/libsane-*.la\n"
package: |
  true