PKGBUILD 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
  2. # Contributor: Sarah Hay <sarahhay@mb.sympatico.ca>
  3. # Contributor: Simo L. <neotuli@yahoo.com>
  4. # Contributor: eric <eric@archlinux.org>
  5. pkgname=sane
  6. pkgver=1.0.27
  7. pkgrel=2
  8. pkgdesc="Scanner Access Now Easy"
  9. url="http://www.sane-project.org/"
  10. arch=('x86_64')
  11. license=('GPL')
  12. depends=('libtiff>=4.0.0' 'libgphoto2' 'libjpeg>=8' 'libusbx' 'libcups' 'libieee1284' 'v4l-utils' 'avahi' 'bash' 'net-snmp')
  13. makedepends=('texlive-latexextra')
  14. backup=(etc/sane.d/{abaton.conf,agfafocus.conf,apple.conf,artec.conf,artec_eplus48u.conf,avision.conf,bh.conf,canon.conf,canon630u.conf,canon_dr.conf,canon_pp.conf,cardscan.conf,coolscan2.conf,coolscan3.conf,coolscan.conf,dc25.conf,dc210.conf,dc240.conf,dell1600n_net.conf,dll.conf,dmc.conf,epjitsu.conf,epson.conf,epson2.conf,epsonds.conf,fujitsu.conf,genesys.conf,gphoto2.conf,gt68xx.conf,hp.conf,hp3900.conf,hp4200.conf,hp5400.conf,hpsj5s.conf,hs2p.conf,ibm.conf,kodak.conf,kodakaio.conf,leo.conf,lexmark.conf,ma1509.conf,magicolor.conf,matsushita.conf,microtek.conf,microtek2.conf,mustek.conf,mustek_pp.conf,mustek_usb.conf,nec.conf,net.conf,p5.conf,pie.conf,pieusb.conf,pixma.conf,plustek.conf,plustek_pp.conf,qcam.conf,ricoh.conf,rts8891.conf,s9036.conf,saned.conf,sceptre.conf,sharp.conf,sm3840.conf,snapscan.conf,sp15c.conf,st400.conf,stv680.conf,tamarack.conf,teco1.conf,teco2.conf,teco3.conf,test.conf,u12.conf,umax.conf,umax1220u.conf,umax_pp.conf,xerox_mfp.conf,v4l.conf} etc/xinetd.d/sane)
  15. source=(https://sources.archlinux.org/other/sane/$pkgname-backends-$pkgver.tar.gz
  16. 'sane.xinetd'
  17. 'saned.socket'
  18. 'saned.service'
  19. 'network.patch'
  20. 'genesys.patch')
  21. prepare() {
  22. cd "${srcdir}/${pkgname}-backends-${pkgver}"
  23. # fix http://vasks.debian.org/tracker/?func=detail&atid=410366&aid=313760&group_id=30186
  24. patch -Np1 -i ${srcdir}/network.patch
  25. patch -Np1 -i ${srcdir}/genesys.patch
  26. }
  27. build() {
  28. cd "${srcdir}/${pkgname}-backends-${pkgver}"
  29. ./configure --prefix=/usr --sbindir=/usr/bin \
  30. --sysconfdir=/etc \
  31. --localstatedir=/var \
  32. --with-docdir=/usr/share/doc/sane \
  33. --enable-avahi \
  34. --enable-pthread \
  35. --disable-rpath \
  36. --enable-libusb_1_0 \
  37. --disable-locking
  38. make
  39. }
  40. package () {
  41. cd "${srcdir}/${pkgname}-backends-${pkgver}"
  42. make DESTDIR="${pkgdir}" install
  43. # fix hp officejets
  44. echo "#hpaio" >> "${pkgdir}/etc/sane.d/dll.conf"
  45. # install udev files
  46. install -D -m0644 tools/udev/libsane.rules \
  47. "${pkgdir}/usr/lib/udev/rules.d/49-sane.rules"
  48. # fix udev rules
  49. sed -i 's|NAME="%k", ||g' "${pkgdir}/usr/lib/udev/rules.d/49-sane.rules"
  50. # install xinetd file
  51. install -D -m644 "${srcdir}/sane.xinetd" "${pkgdir}/etc/xinetd.d/sane"
  52. # Install the pkg-config file
  53. install -D -m644 tools/sane-backends.pc \
  54. "${pkgdir}/usr/lib/pkgconfig/sane-backends.pc"
  55. # install systemd files
  56. install -D -m644 ${srcdir}/saned.socket \
  57. "${pkgdir}/usr/lib/systemd/system/saned.socket"
  58. install -D -m644 ${srcdir}/saned.service \
  59. "${pkgdir}/usr/lib/systemd/system/saned@.service"
  60. }
  61. sha512sums=('c6552768bfc10216730fc11011c82f74ca0952182019ded3916072147ec09be5c975ce1d37dc3ccea050c488dbdf983c2ca17dcd702644060ba796ae2591f9c5'
  62. '8f9f18d432087e5445aa533be375a811daf320512069c108d41a79121868937e1a7ffa21ee7d33adcf9fbb670bca460ff06423ce39602f35151eccc243d9d4ec'
  63. '62654a59fae3216be9c0ae4f810375de1232133ab12732529a3e064cc83d94563560e01950dea4b25aa298294c5f0421436c5e095a3a00ad8ef78b471f3105f4'
  64. 'c4cd4427ee8e5cb128c5d54006fafbb4f846508582dffc293f16ab14ab638e6ee3dc5df0eb06f6d0d3839941ab74623c7163ac13bcdfec87b10308587a697536'
  65. '04b65a06d2c76dde6fce501ba823e999eb89ea41573f887f9e7d5347f3aa5e35310fad69313e99f873640e29a9849372d2ff995678593a0781fba73b464bec0d'
  66. '3e7fba3477c607cfcd880cc5e95a4143a9e3f4102e066f715c31b65d0fbf1b7f5dc7c5d096002d6c1dc446b4cdd28453ed5d456a90fd9305e81fc4feaaead4ea')